package com.wicket.okrapp.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.util.CommonFunctionHelper;
import com.wicket.okrapp.common.util.RedisUtil;
import java.util.List;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.wicket.okrapp.base.service.MOmsEvaluationObjectTargetCycleService;
import com.wicket.okrapp.biz.service.dto.common.EvaObjTargetCycleDto;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrapp.common.exception.Assert;
import com.wicket.okrapp.biz.service.nb.NbCalcTargetContent;
import com.wicket.okrapp.biz.service.TargetContentService;
import com.wicket.okrapp.biz.service.CustomExecutionCycleService;
import com.wicket.okrapp.dal.po.mbg.OmsEvaluationObjectTargetCycle;
import java.util.ArrayList;
import com.wicket.okrapp.biz.service.TargetCycleService;
import com.wicket.okrcomponent.integration.dto.CheckTimeScopeSearchComRespDto;
import com.wicket.okrcomponent.integration.dto.CheckTimeScopeSearchComReqDto;
import com.wicket.okrcomponent.integration.FwCompConfSchemeClient;
import com.wicket.okrapp.biz.service.IndexSystemService;
import com.wicket.okrcomponent.integration.FwCompDivineDataClient;
import com.wicket.okrapp.base.service.dto.req.QueryEvaObjTargetCycleListReq;
import com.wicket.okrapp.biz.service.TargetContComService;
import com.wicket.okrcomponent.integration.dto.PreparationTargetContCycleConfParameterComRespDto;
import com.wicket.okrcomponent.integration.dto.PreparationTargetContCycleConfParameterComReqDto;
import com.wicket.okrcomponent.integration.FwCompTargetContComClient;
import com.wicket.okrapp.base.service.dto.req.QueryUnderWayEvaObjTargetCycleListReq;

/**
 * @author ：
 * @date ：
 * 
 *
 * @version 1.0
 */
@Service
public class CalcTargetContentServiceImpl
  implements com.wicket.okrapp.biz.service.CalcTargetContentService {

  @Resource
  private RedisUtil redisUtil;
@Resource
  private MOmsEvaluationObjectTargetCycleService mOmsEvaluationObjectTargetCycleService;
@Resource
  private NbCalcTargetContent nbCalcTargetContent;
@Resource
  private TargetContentService targetContentService;
@Resource
  private CustomExecutionCycleService customExecutionCycleService;
@Resource
  private TargetCycleService targetCycleService;
@Resource
  private FwCompConfSchemeClient fwCompConfSchemeClient;
@Resource
  private IndexSystemService indexSystemService;
@Resource
  private FwCompDivineDataClient fwCompDivineDataClient;
@Resource
  private TargetContComService targetContComService;
@Resource
  private FwCompTargetContComClient fwCompTargetContComClient;
//@Resource
 //private undefinedService undefinedService;
//@Resource
 //private TargetContComService targetContComService;
/**
   * D3初始化目标内容父子中周期(公共)[9395]
   * gen by moon at 5/19/2024, 4:54:33 PM
   */
  @Trace(operationName = "D3初始化目标内容父子中周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementInitializeTargetContFatherSubMidCycleComRespDto implementInitializeTargetContFatherSubMidCycleCom(ImplementInitializeTargetContFatherSubMidCycleComReqDto reqDto){
    
      
      //步骤0: M3执行第八接收字段（特殊方法） - implementEightReceivingField
     //ModelCode: receptionService
        ImplementEightReceivingFieldRespDto receptionServiceRes = null;
    ImplementEightReceivingFieldReqDto receptionServiceReq=new ImplementEightReceivingFieldReqDto();
  if(reqDto!= null&&  reqDto.getEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getEvaObjTargetCycleList())){
      receptionServiceReq.setEvaObjTargetCycleList(reqDto.getEvaObjTargetCycleList().stream().map(item -> BeanUtil.toBean(item, EvaObjTargetCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1731871_1
    }
if(reqDto!=null){
      receptionServiceReq.setEvaObjTargetCycleCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1731875_1
receptionServiceReq.setParentEvaObjTargetCycleId(reqDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1731876_1
receptionServiceReq.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1731877_1
receptionServiceReq.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1731874_1
receptionServiceReq.setCyclelAlias(reqDto.getCyclelAlias());//SimpleFieldAssign//sourceId:1731879_1
receptionServiceReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1731882_1
receptionServiceReq.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1731881_1
receptionServiceReq.setIndicatorKind(reqDto.getIndicatorKind());//SimpleFieldAssign//sourceId:1731912_1
receptionServiceReq.setIsCustomObjective(reqDto.getIsCustomObjective());//SimpleFieldAssign//sourceId:1731913_1
receptionServiceReq.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1731872_1
receptionServiceReq.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1731873_1
receptionServiceReq.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1731878_1
receptionServiceReq.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:1731921_1
receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1731880_1
receptionServiceReq.setTargetContentNumber(reqDto.getTargetContentNumber());//SimpleFieldAssign//sourceId:1801506_1
receptionServiceReq.setRelativeOrderNumber(reqDto.getRelativeOrderNumber());//SimpleFieldAssign//sourceId:1731883_1
receptionServiceReq.setDutyBodyOrderNum(reqDto.getDutyBodyOrderNum());//SimpleFieldAssign//sourceId:1731884_1
receptionServiceReq.setPersonalOrderNumber(reqDto.getPersonalOrderNumber());//SimpleFieldAssign//sourceId:1731885_1
receptionServiceReq.setWeightOrderNumber(reqDto.getWeightOrderNumber());//SimpleFieldAssign//sourceId:1731886_1
receptionServiceReq.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:1731887_1
receptionServiceReq.setCalcBusinessScence(reqDto.getCalcBusinessScence());//SimpleFieldAssign//sourceId:1734449_1
    }
  
    /*M3接收字段入参[8691]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getEvaObjTargetCycleCode(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-被评对象目标周期标识不能为空",false);
Assert.isNull(receptionServiceReq.getEvaObjEntityId(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-被评对象内容表主键ID不能为空",false);
Assert.isNull(receptionServiceReq.getEvaObjTypeCode(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-被评对象类型编码不能为空",false);
Assert.isNull(receptionServiceReq.getCyclelAlias(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-目标周期简称不能为空",false);
Assert.isNull(receptionServiceReq.getTargetCycleContentId(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-关联目标内容ID不能为空",false);
Assert.isNull(receptionServiceReq.getTargetCycleContentTypeCode(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-关联目标内容类型编码不能为空",false);
Assert.isNull(receptionServiceReq.getCycleStartTime(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-目标计划开始时间不能为空",false);
Assert.isNull(receptionServiceReq.getCycleEndTime(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-目标计划结束时间不能为空",false);
Assert.isNull(receptionServiceReq.getCycleTypeCode(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-周期类型标识不能为空",false);
Assert.isNull(receptionServiceReq.getTargetId(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-冗余目标ID不能为空",false);
Assert.isNull(receptionServiceReq.getEvaluationTemplateId(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-冗余评价模板ID不能为空",false);
Assert.isNull(receptionServiceReq.getRelativeOrderNumber(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-相对上级排序不能为空",false);
Assert.isNull(receptionServiceReq.getBatchCode(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-批次标识不能为空",false);
Assert.isNull(receptionServiceReq.getCalcBusinessScence(),"D3初始化目标内容父子中周期(公共)-M3接收字段入参-计算业务场景不能为空",false);
      receptionServiceRes = nbCalcTargetContent.implementEightReceivingField(receptionServiceReq);
      
      
      
    
//步骤1: D3初始化目标内容父子周期(公共) - implementInitializeTargetContFatherAndSubCycleCom
     ImplementInitializeTargetContFatherAndSubCycleComRespDto implementInitializeTargetContFatherAndSubCycleComRespDto = null;
    ImplementInitializeTargetContFatherAndSubCycleComReqDto implementInitializeTargetContFatherAndSubCycleComReqDto=new ImplementInitializeTargetContFatherAndSubCycleComReqDto();
  if(reqDto!=null){
      implementInitializeTargetContFatherAndSubCycleComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1731514_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1731515_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1731516_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1731517_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1731518_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setEvaObjTargetCycleCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1731520_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setParentEvaObjTargetCycleId(reqDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1731530_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setCyclelAlias(reqDto.getCyclelAlias());//SimpleFieldAssign//sourceId:1731532_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1731519_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1731521_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setIsCustomObjective(reqDto.getIsCustomObjective());//SimpleFieldAssign//sourceId:1731522_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setIndicatorKind(reqDto.getIndicatorKind());//SimpleFieldAssign//sourceId:1731523_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1731524_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setTargetContentNumber(reqDto.getTargetContentNumber());//SimpleFieldAssign//sourceId:1801516_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setRelativeOrderNumber(reqDto.getRelativeOrderNumber());//SimpleFieldAssign//sourceId:1731526_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setDutyBodyOrderNum(reqDto.getDutyBodyOrderNum());//SimpleFieldAssign//sourceId:1731527_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setPersonalOrderNumber(reqDto.getPersonalOrderNumber());//SimpleFieldAssign//sourceId:1731528_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setWeightOrderNumber(reqDto.getWeightOrderNumber());//SimpleFieldAssign//sourceId:1731529_1
implementInitializeTargetContFatherAndSubCycleComReqDto.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:1731525_1
    }
if(reqDto!= null&&  reqDto.getEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getEvaObjTargetCycleList())){
      implementInitializeTargetContFatherAndSubCycleComReqDto.setEvaObjTargetCycleList(reqDto.getEvaObjTargetCycleList().stream().map(item -> BeanUtil.toBean(item, EvaObjTargetCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1731531_1
    }
  
    /*D3初始化当前目标内容父子目标周期(公共)[9383]   */
    Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getCycleStartTime(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-目标计划开始时间不能为空",false);
Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getCycleEndTime(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-目标计划结束时间不能为空",false);
Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getCycleTypeCode(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-周期类型标识不能为空",false);
Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getEvaObjEntityId(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getEvaObjTypeCode(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getEvaObjTargetCycleCode(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-被评对象目标周期标识不能为空",false);
Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getParentEvaObjTargetCycleId(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-上级被评对象目标周期标识不能为空",false);
Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getCyclelAlias(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-目标周期简称不能为空",false);
Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getTargetCycleContentId(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getTargetCycleContentTypeCode(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getEvaluationTemplateId(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getRelativeOrderNumber(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-相对上级排序不能为空",false);
Assert.isNull(implementInitializeTargetContFatherAndSubCycleComReqDto.getBatchCode(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容父子目标周期(公共)-批次标识不能为空",false);
      implementInitializeTargetContFatherAndSubCycleComRespDto = implementInitializeTargetContFatherAndSubCycleCom(implementInitializeTargetContFatherAndSubCycleComReqDto)/*vcase invoke 同服务,同domain*/;
      
      
      
    
//步骤2: D3执行更新目标周期同体情况(公共) - implementUpdateTargetCycleHomomorphicCom
     ImplementUpdateTargetCycleHomomorphicComRespDto implementUpdateTargetCycleHomomorphicComRespDto = null;
    if(implementInitializeTargetContFatherAndSubCycleComRespDto !=null){
          ImplementUpdateTargetCycleHomomorphicComReqDto implementUpdateTargetCycleHomomorphicComReqDto=new ImplementUpdateTargetCycleHomomorphicComReqDto();
  if(reqDto!= null&&  reqDto.getEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getEvaObjTargetCycleList())){
      implementUpdateTargetCycleHomomorphicComReqDto.setEvaObjTargetCycleList(reqDto.getEvaObjTargetCycleList().stream().map(item->item.getCycleId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1731540_1
    }
if(implementInitializeTargetContFatherAndSubCycleComRespDto!=null){
      implementUpdateTargetCycleHomomorphicComReqDto.setEvaObjTargetCycleId(implementInitializeTargetContFatherAndSubCycleComRespDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1731541_1
implementUpdateTargetCycleHomomorphicComReqDto.setTargetCycleStartTime(implementInitializeTargetContFatherAndSubCycleComRespDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1731539_1
    }
if(reqDto!=null){
      implementUpdateTargetCycleHomomorphicComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1731535_1
implementUpdateTargetCycleHomomorphicComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1731536_1
implementUpdateTargetCycleHomomorphicComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1731537_1
implementUpdateTargetCycleHomomorphicComReqDto.setTargetContentNumber(reqDto.getTargetContentNumber());//SimpleFieldAssign//sourceId:1801522_1
implementUpdateTargetCycleHomomorphicComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1731538_1
    }
  
    /*D3更新当前目标内容目标周期同体情况(公共)[9384]   */
    Assert.isNull(implementUpdateTargetCycleHomomorphicComReqDto.getEvaObjTargetCycleId(),"D3初始化目标内容父子中周期(公共)-D3更新当前目标内容目标周期同体情况(公共)-被评对象目标周期ID不能为空",false);
Assert.isNull(implementUpdateTargetCycleHomomorphicComReqDto.getCycleStartTime(),"D3初始化目标内容父子中周期(公共)-D3更新当前目标内容目标周期同体情况(公共)-目标计划开始时间不能为空",false);
Assert.isNull(implementUpdateTargetCycleHomomorphicComReqDto.getCycleEndTime(),"D3初始化目标内容父子中周期(公共)-D3更新当前目标内容目标周期同体情况(公共)-目标计划结束时间不能为空",false);
Assert.isNull(implementUpdateTargetCycleHomomorphicComReqDto.getCycleTypeCode(),"D3初始化目标内容父子中周期(公共)-D3更新当前目标内容目标周期同体情况(公共)-周期类型标识不能为空",false);
Assert.isNull(implementUpdateTargetCycleHomomorphicComReqDto.getEvaluationTemplateId(),"D3初始化目标内容父子中周期(公共)-D3更新当前目标内容目标周期同体情况(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementUpdateTargetCycleHomomorphicComReqDto.getTargetCycleStartTime(),"D3初始化目标内容父子中周期(公共)-D3更新当前目标内容目标周期同体情况(公共)-评价模板父周期开始时间不能为空",false);
      implementUpdateTargetCycleHomomorphicComRespDto = implementUpdateTargetCycleHomomorphicCom(implementUpdateTargetCycleHomomorphicComReqDto)/*vcase invoke 同服务,同domain*/;
      
      
      
           }
    
//步骤3: D3执行目标内容周期规划设置初始化(公共) - implementTargetContCyclePsetInitializeCom
     ImplementTargetContCyclePsetInitializeComRespDto implementTargetContCyclePsetInitializeComRespDto = null;
    ImplementTargetContCyclePsetInitializeComReqDto implementTargetContCyclePsetInitializeComReqDto=new ImplementTargetContCyclePsetInitializeComReqDto();
  if(reqDto!=null){
      implementTargetContCyclePsetInitializeComReqDto.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1732224_1
implementTargetContCyclePsetInitializeComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1732225_1
implementTargetContCyclePsetInitializeComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1732229_1
implementTargetContCyclePsetInitializeComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1732226_1
implementTargetContCyclePsetInitializeComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1732227_1
implementTargetContCyclePsetInitializeComReqDto.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:1732228_1
    }
  
    /*D3初始化目标内容周期规划设置(公共)[6294]   */
    Assert.isNull(implementTargetContCyclePsetInitializeComReqDto.getEvaObjEntityId(),"D3初始化目标内容父子中周期(公共)-D3初始化目标内容周期规划设置(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(implementTargetContCyclePsetInitializeComReqDto.getEvaObjTypeCode(),"D3初始化目标内容父子中周期(公共)-D3初始化目标内容周期规划设置(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementTargetContCyclePsetInitializeComReqDto.getTargetCycleContentTypeCode(),"D3初始化目标内容父子中周期(公共)-D3初始化目标内容周期规划设置(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementTargetContCyclePsetInitializeComReqDto.getTargetCycleContentId(),"D3初始化目标内容父子中周期(公共)-D3初始化目标内容周期规划设置(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementTargetContCyclePsetInitializeComReqDto.getEvaluationTemplateId(),"D3初始化目标内容父子中周期(公共)-D3初始化目标内容周期规划设置(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementTargetContCyclePsetInitializeComReqDto.getBatchCode(),"D3初始化目标内容父子中周期(公共)-D3初始化目标内容周期规划设置(公共)-批次标识不能为空",false);
      implementTargetContCyclePsetInitializeComRespDto = targetContentService.implementTargetContCyclePsetInitializeCom(implementTargetContCyclePsetInitializeComReqDto)/*vcase invoke isSameApp*/;
      
      
      
    
//步骤4: D3回写目标周期权重等信息(公共) - implementRewriteTargetCycleWeightEtcInfoCom
     ImplementRewriteTargetCycleWeightEtcInfoComRespDto implementRewriteTargetCycleWeightEtcInfoComRespDto = null;
    ImplementRewriteTargetCycleWeightEtcInfoComReqDto implementRewriteTargetCycleWeightEtcInfoComReqDto=new ImplementRewriteTargetCycleWeightEtcInfoComReqDto();
  if(reqDto!=null){
      implementRewriteTargetCycleWeightEtcInfoComReqDto.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1731545_1
implementRewriteTargetCycleWeightEtcInfoComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1731546_1
implementRewriteTargetCycleWeightEtcInfoComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1731542_1
implementRewriteTargetCycleWeightEtcInfoComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1731543_1
implementRewriteTargetCycleWeightEtcInfoComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1731544_1
implementRewriteTargetCycleWeightEtcInfoComReqDto.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:1731547_1
implementRewriteTargetCycleWeightEtcInfoComReqDto.setCalcBusinessScence(reqDto.getCalcBusinessScence());//SimpleFieldAssign//sourceId:1734448_1
    }
  
    /*D3初始化当前目标内容目标周期权重等信息（权重、指标目标设置与是否用于一级部门）[9394]   */
    Assert.isNull(implementRewriteTargetCycleWeightEtcInfoComReqDto.getEvaObjEntityId(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容目标周期权重等信息（权重、指标目标设置与是否用于一级部门）-被评对象内容表主键ID不能为空",false);
Assert.isNull(implementRewriteTargetCycleWeightEtcInfoComReqDto.getEvaObjTypeCode(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容目标周期权重等信息（权重、指标目标设置与是否用于一级部门）-被评对象类型编码不能为空",false);
Assert.isNull(implementRewriteTargetCycleWeightEtcInfoComReqDto.getTargetCycleContentId(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容目标周期权重等信息（权重、指标目标设置与是否用于一级部门）-关联目标内容ID不能为空",false);
Assert.isNull(implementRewriteTargetCycleWeightEtcInfoComReqDto.getTargetCycleContentTypeCode(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容目标周期权重等信息（权重、指标目标设置与是否用于一级部门）-关联目标内容类型编码不能为空",false);
Assert.isNull(implementRewriteTargetCycleWeightEtcInfoComReqDto.getEvaluationTemplateId(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容目标周期权重等信息（权重、指标目标设置与是否用于一级部门）-冗余评价模板ID不能为空",false);
Assert.isNull(implementRewriteTargetCycleWeightEtcInfoComReqDto.getBatchCode(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容目标周期权重等信息（权重、指标目标设置与是否用于一级部门）-批次标识不能为空",false);
Assert.isNull(implementRewriteTargetCycleWeightEtcInfoComReqDto.getCalcBusinessScence(),"D3初始化目标内容父子中周期(公共)-D3初始化当前目标内容目标周期权重等信息（权重、指标目标设置与是否用于一级部门）-计算业务场景不能为空",false);
      implementRewriteTargetCycleWeightEtcInfoComRespDto = implementRewriteTargetCycleWeightEtcInfoCom(implementRewriteTargetCycleWeightEtcInfoComReqDto)/*vcase invoke 同服务,同domain*/;
      
      
      
    
//步骤5: D3新增目标内容执行周期阶段(公共) - addTargetConExecuteCycleStageCom
     AddTargetConExecuteCycleStageComRespDto addTargetConExecuteCycleStageComRespDto = null;
    AddTargetConExecuteCycleStageComReqDto addTargetConExecuteCycleStageComReqDto=new AddTargetConExecuteCycleStageComReqDto();
  addTargetConExecuteCycleStageComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1731584_1
if(reqDto!=null){
      addTargetConExecuteCycleStageComReqDto.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1733409_1
addTargetConExecuteCycleStageComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1733410_1
      addTargetConExecuteCycleStageComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1731582_1
addTargetConExecuteCycleStageComReqDto.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1733046_1
addTargetConExecuteCycleStageComReqDto.setSubcycleType(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1731586_1
addTargetConExecuteCycleStageComReqDto.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:1731585_1
addTargetConExecuteCycleStageComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1731583_1
    }
  
    /*D3新增当前目标内容自定义执行周期阶段(公共)[9387]   */
    Assert.isNull(addTargetConExecuteCycleStageComReqDto.getEvaObjEntityId(),"D3初始化目标内容父子中周期(公共)-D3新增当前目标内容自定义执行周期阶段(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(addTargetConExecuteCycleStageComReqDto.getEvaObjTypeCode(),"D3初始化目标内容父子中周期(公共)-D3新增当前目标内容自定义执行周期阶段(公共)-被评对象类型编码不能为空",false);
    Assert.isNull(addTargetConExecuteCycleStageComReqDto.getTargetCycleContentId(),"D3初始化目标内容父子中周期(公共)-D3新增当前目标内容自定义执行周期阶段(公共)-关联目标内容ID不能为空",false);
Assert.isNull(addTargetConExecuteCycleStageComReqDto.getTargetCycleContentTypeCode(),"D3初始化目标内容父子中周期(公共)-D3新增当前目标内容自定义执行周期阶段(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(addTargetConExecuteCycleStageComReqDto.getSubcycleType(),"D3初始化目标内容父子中周期(公共)-D3新增当前目标内容自定义执行周期阶段(公共)-子周期周期类型不能为空",false);
Assert.isNull(addTargetConExecuteCycleStageComReqDto.getTargetId(),"D3初始化目标内容父子中周期(公共)-D3新增当前目标内容自定义执行周期阶段(公共)-冗余目标ID不能为空",false);
Assert.isNull(addTargetConExecuteCycleStageComReqDto.getEvaluationTemplateId(),"D3初始化目标内容父子中周期(公共)-D3新增当前目标内容自定义执行周期阶段(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(addTargetConExecuteCycleStageComReqDto.getSpaceId(),"D3初始化目标内容父子中周期(公共)-D3新增当前目标内容自定义执行周期阶段(公共)-创建于空间ID不能为空",false);
      addTargetConExecuteCycleStageComRespDto = customExecutionCycleService.addTargetConExecuteCycleStageCom(addTargetConExecuteCycleStageComReqDto)/*vcase invoke isSameApp*/;
      
      
      
    
ImplementInitializeTargetContFatherSubMidCycleComRespDto retData = new ImplementInitializeTargetContFatherSubMidCycleComRespDto();
  
  

  
  
return retData;
  }
/**
   * D3初始化目标内容父子周期(公共)[9383]
   * gen by moon at 6/16/2024, 2:52:05 AM
   */
  @Trace(operationName = "D3初始化目标内容父子周期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementInitializeTargetContFatherAndSubCycleComRespDto implementInitializeTargetContFatherAndSubCycleCom(ImplementInitializeTargetContFatherAndSubCycleComReqDto reqDto){
    
      
      ObtainEvaObjTargetCycleComRespDto obtainEvaObjTargetCycleComRespDto_1 =null;
String string_1 =null;
//virtualUsage D3准备入参：1查询目标父周期详请（用于获取公共字段）  66747
      ObtainEvaObjTargetCycleComRespDto obtainEvaObjTargetCycleComRespDto = null;
    ObtainEvaObjTargetCycleComReqDto obtainEvaObjTargetCycleComReqDto=new ObtainEvaObjTargetCycleComReqDto();
  obtainEvaObjTargetCycleComReqDto.setTargetCycleContentTypeCode("TARGET");//sourceId:1725689_1_66747
obtainEvaObjTargetCycleComReqDto.setIsParentCycle("TRUE");//sourceId:1725690_1_66747
obtainEvaObjTargetCycleComReqDto.setIsArchive("FALSE");//sourceId:1725692_1_66747
if(reqDto!=null){
      obtainEvaObjTargetCycleComReqDto.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1725687_1_66747
obtainEvaObjTargetCycleComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1725688_1_66747
obtainEvaObjTargetCycleComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1725691_1_66747
    }
  
    /*D3准备入参：1查询目标父周期详请（用于获取公共字段）[9380]   */
    Assert.isNull(obtainEvaObjTargetCycleComReqDto.getEvaObjEntityId(),"D3初始化目标内容父子周期(公共)-D3准备入参：1查询目标父周期详请（用于获取公共字段）-被评对象内容表主键ID不能为空",false);
Assert.isNull(obtainEvaObjTargetCycleComReqDto.getEvaObjTypeCode(),"D3初始化目标内容父子周期(公共)-D3准备入参：1查询目标父周期详请（用于获取公共字段）-被评对象类型编码不能为空",false);
Assert.isNull(obtainEvaObjTargetCycleComReqDto.getTargetCycleContentTypeCode(),"D3初始化目标内容父子周期(公共)-D3准备入参：1查询目标父周期详请（用于获取公共字段）-关联目标内容类型编码不能为空",false);
Assert.isNull(obtainEvaObjTargetCycleComReqDto.getIsParentCycle(),"D3初始化目标内容父子周期(公共)-D3准备入参：1查询目标父周期详请（用于获取公共字段）-是否父周期不能为空",false);
Assert.isNull(obtainEvaObjTargetCycleComReqDto.getIsArchive(),"D3初始化目标内容父子周期(公共)-D3准备入参：1查询目标父周期详请（用于获取公共字段）-是否存档不能为空",false);
Assert.isNull(obtainEvaObjTargetCycleComReqDto.getEvaluationTemplateId(),"D3初始化目标内容父子周期(公共)-D3准备入参：1查询目标父周期详请（用于获取公共字段）-冗余评价模板ID不能为空",false);
      obtainEvaObjTargetCycleComRespDto = targetCycleService.obtainEvaObjTargetCycleCom(obtainEvaObjTargetCycleComReqDto)/*vcase invoke isSameApp*/;
      
      
      obtainEvaObjTargetCycleComRespDto_1 = obtainEvaObjTargetCycleComRespDto;
//virtualUsage 3-3-09新增被评对象目标周期  66751
      String string = null;
    if(obtainEvaObjTargetCycleComRespDto !=null){
          OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle=new OmsEvaluationObjectTargetCycle();
  omsEvaluationObjectTargetCycle.setIsTarget("FALSE");//sourceId:1725823_1_66751
omsEvaluationObjectTargetCycle.setIsParentCycle("TRUE");//sourceId:1725807_1_66751
omsEvaluationObjectTargetCycle.setIsSubCycle("FALSE");//sourceId:1725808_1_66751
omsEvaluationObjectTargetCycle.setIsMetaphase("FALSE");//sourceId:1725809_1_66751
omsEvaluationObjectTargetCycle.setHaveProcessCycle("FALSE");//sourceId:1725844_1_66751
omsEvaluationObjectTargetCycle.setTaskStatus("NOT_AT_THE");//sourceId:1725814_1_66751
if(reqDto!=null){
      omsEvaluationObjectTargetCycle.setEvaObjTargetCycleCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1725799_1_66751
omsEvaluationObjectTargetCycle.setParentEvaObjTargetCycleId(reqDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1725800_1_66751
omsEvaluationObjectTargetCycle.setTargetCycleName(reqDto.getCyclelAlias());//SimpleFieldAssign//sourceId:1725836_1_66751
omsEvaluationObjectTargetCycle.setCyclelAlias(reqDto.getCyclelAlias());//SimpleFieldAssign//sourceId:1725837_1_66751
omsEvaluationObjectTargetCycle.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1725802_1_66751
omsEvaluationObjectTargetCycle.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1725804_1_66751
omsEvaluationObjectTargetCycle.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1725805_1_66751
omsEvaluationObjectTargetCycle.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1725806_1_66751
omsEvaluationObjectTargetCycle.setIndicatorKind(reqDto.getIndicatorKind());//SimpleFieldAssign//sourceId:1725842_1_66751
omsEvaluationObjectTargetCycle.setIsCustomObjective(reqDto.getIsCustomObjective());//SimpleFieldAssign//sourceId:1725843_1_66751
omsEvaluationObjectTargetCycle.setTargetContentNumber(reqDto.getTargetContentNumber());//SimpleFieldAssign//sourceId:1801515_1_66751
omsEvaluationObjectTargetCycle.setRelativeOrderNumber(reqDto.getRelativeOrderNumber());//SimpleFieldAssign//sourceId:1725841_1_66751
omsEvaluationObjectTargetCycle.setDutyBodyOrderNum(reqDto.getDutyBodyOrderNum());//SimpleFieldAssign//sourceId:1725846_1_66751
omsEvaluationObjectTargetCycle.setPersonalOrderNumber(reqDto.getPersonalOrderNumber());//SimpleFieldAssign//sourceId:1725847_1_66751
omsEvaluationObjectTargetCycle.setWeightOrderNumber(reqDto.getWeightOrderNumber());//SimpleFieldAssign//sourceId:1725848_1_66751
omsEvaluationObjectTargetCycle.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:1725820_1_66751
omsEvaluationObjectTargetCycle.setCreateBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:1725849_1_66751
    }
if(obtainEvaObjTargetCycleComRespDto!=null){
      omsEvaluationObjectTargetCycle.setEvaluationObjectId(obtainEvaObjTargetCycleComRespDto.getEvaluationObjectId());//SimpleFieldAssign//sourceId:1725822_1_66751
omsEvaluationObjectTargetCycle.setEvaObjTableTypeCode(obtainEvaObjTargetCycleComRespDto.getEvaObjTableTypeCode());//SimpleFieldAssign//sourceId:1725803_1_66751
omsEvaluationObjectTargetCycle.setTreeTypeCode(obtainEvaObjTargetCycleComRespDto.getTreeTypeCode());//SimpleFieldAssign//sourceId:1725801_1_66751
omsEvaluationObjectTargetCycle.setCycleId(obtainEvaObjTargetCycleComRespDto.getCycleId());//SimpleFieldAssign//sourceId:1725810_1_66751
omsEvaluationObjectTargetCycle.setCycleStandardName(obtainEvaObjTargetCycleComRespDto.getCycleStandardName());//SimpleFieldAssign//sourceId:1725838_1_66751
omsEvaluationObjectTargetCycle.setCycleStartTime(obtainEvaObjTargetCycleComRespDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1725831_1_66751
omsEvaluationObjectTargetCycle.setCycleEndTime(obtainEvaObjTargetCycleComRespDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1725832_1_66751
omsEvaluationObjectTargetCycle.setCycleTypeCode(obtainEvaObjTargetCycleComRespDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1725811_1_66751
omsEvaluationObjectTargetCycle.setBizSceneCode(obtainEvaObjTargetCycleComRespDto.getBizSceneCode());//SimpleFieldAssign//sourceId:1725815_1_66751
omsEvaluationObjectTargetCycle.setEvaluationSubjectTypeCode(obtainEvaObjTargetCycleComRespDto.getEvaluationSubjectTypeCode());//SimpleFieldAssign//sourceId:1725816_1_66751
omsEvaluationObjectTargetCycle.setEvaluationTemplateTypeCode(obtainEvaObjTargetCycleComRespDto.getEvaluationTemplateTypeCode());//SimpleFieldAssign//sourceId:1725817_1_66751
omsEvaluationObjectTargetCycle.setPlanningType(obtainEvaObjTargetCycleComRespDto.getPlanningType());//SimpleFieldAssign//sourceId:1725818_1_66751
omsEvaluationObjectTargetCycle.setTargetId(obtainEvaObjTargetCycleComRespDto.getTargetId());//SimpleFieldAssign//sourceId:1725833_1_66751
omsEvaluationObjectTargetCycle.setEvaluationSubjectId(obtainEvaObjTargetCycleComRespDto.getEvaluationSubjectId());//SimpleFieldAssign//sourceId:1725834_1_66751
omsEvaluationObjectTargetCycle.setEvaluationTemplateId(obtainEvaObjTargetCycleComRespDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1725819_1_66751
omsEvaluationObjectTargetCycle.setOrderNumber(obtainEvaObjTargetCycleComRespDto.getOrderNumber());//SimpleFieldAssign//sourceId:1725813_1_66751
omsEvaluationObjectTargetCycle.setSortCreateTime(obtainEvaObjTargetCycleComRespDto.getSortCreateTime());//SimpleFieldAssign//sourceId:1725812_1_66751
    }
  
    /*3-3-09新增被评对象目标周期[2314]   */
    Assert.isNull(omsEvaluationObjectTargetCycle.getEvaObjTargetCycleCode(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-被评对象目标周期标识不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getTargetCycleName(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-目标周期名称不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCyclelAlias(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-目标周期简称不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaObjEntityId(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-被评对象内容表主键ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaObjTableTypeCode(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-被评对象内容表类型编码不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaObjTypeCode(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-被评对象类型编码不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getTreeTypeCode(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-树类型编码不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getTargetCycleContentId(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-关联目标内容ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getTargetCycleContentTypeCode(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-关联目标内容类型编码不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getIsTarget(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-是否目标不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleId(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-周期ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleStandardName(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-周期名称不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleStartTime(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-目标计划开始时间不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleEndTime(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-目标计划结束时间不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleTypeCode(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-周期类型标识不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getIsParentCycle(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-是否父周期不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getIsSubCycle(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-是否子周期不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getIsMetaphase(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-是否中期不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getHaveProcessCycle(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-是否有过程周期不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getTaskStatus(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-目标周期进展状态不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getBizSceneCode(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-冗余业务场景标识配置项不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaluationSubjectTypeCode(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-冗余评价主题类型配置项不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaluationTemplateTypeCode(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-冗余评价模板类型配置项不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getPlanningType(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-冗余规划类型不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getTargetId(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-冗余目标ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaluationSubjectId(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-冗余评价主题ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaluationTemplateId(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-冗余评价模板ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getOrderNumber(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-周期排序不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getRelativeOrderNumber(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-相对上级排序不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getSortCreateTime(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-评价模板创建时间排序不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getBatchCode(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-批次标识不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCreateBatchCode(),"D3初始化目标内容父子周期(公共)-3-3-09新增被评对象目标周期-创建于批次标识不能为空",false);
      string = mOmsEvaluationObjectTargetCycleService.addEvaObjTargetCycle(omsEvaluationObjectTargetCycle)/*vcase invoke 本地 method 方法调用;*/;
      
      
      string_1 = string;
           }
if((reqDto!= null&&  reqDto.getEvaObjTargetCycleList() !=null && reqDto.getEvaObjTargetCycleList().size()>1)) {
        //if(D3初始化目标内容父子周期(公共).被评对象目标周期列表数据集条数 大于 1)  66762
        
boolean bOOLEAN ;
    if(obtainEvaObjTargetCycleComRespDto !=null){
          List<OmsEvaluationObjectTargetCycle> listOmsEvaluationObjectTargetCycle=new ArrayList<>();
  if(reqDto!= null&&  reqDto.getEvaObjTargetCycleList() !=null&& !CollectionUtil.isEmpty(reqDto.getEvaObjTargetCycleList())){
      ObtainEvaObjTargetCycleComRespDto finalObtainEvaObjTargetCycleComRespDto = obtainEvaObjTargetCycleComRespDto;
      ObtainEvaObjTargetCycleComRespDto finalObtainEvaObjTargetCycleComRespDto1 = obtainEvaObjTargetCycleComRespDto;
      listOmsEvaluationObjectTargetCycle = //objList-to-objLists
        reqDto.getEvaObjTargetCycleList().stream().map(item -> {
      OmsEvaluationObjectTargetCycle elm = new OmsEvaluationObjectTargetCycle();
      elm.setIsTarget("FALSE");//sourceId:344983_2_66764
elm.setIsParentCycle("FALSE");//sourceId:344984_2_66764
elm.setIsMetaphase("FALSE");//sourceId:344986_2_66764
elm.setIsSubCycle("TRUE");//sourceId:344985_2_66764
elm.setHaveProcessCycle("FALSE");//sourceId:345017_2_66764
elm.setTaskStatus("NOT_AT_THE");//sourceId:373438_2_66764
if(item!=null){
      elm.setEvaObjTargetCycleCode(reqDto.getEvaObjTargetCycleCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344974_2_66764
elm.setParentEvaObjTargetCycleId(reqDto.getParentEvaObjTargetCycleId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344975_2_66764
elm.setTargetCycleName(reqDto.getCyclelAlias());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:345007_2_66764
elm.setCyclelAlias(reqDto.getCyclelAlias());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:345008_2_66764
elm.setEvaObjEntityId(reqDto.getEvaObjEntityId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344977_2_66764
elm.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344979_2_66764
elm.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344982_2_66764
elm.setTargetCycleContentId(reqDto.getTargetCycleContentId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344981_2_66764
elm.setIndicatorKind(reqDto.getIndicatorKind());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:345015_2_66764
elm.setIsCustomObjective(reqDto.getIsCustomObjective());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:345016_2_66764
elm.setCycleId(item.getCycleId());//SimpleFieldAssign//sourceId:344987_2_66764
elm.setCycleStandardName(item.getCycleStandardName());//SimpleFieldAssign//sourceId:345013_2_66764
elm.setCycleStartTime(item.getCycleStartTime());//SimpleFieldAssign//sourceId:345000_2_66764
elm.setCycleEndTime(item.getCycleEndTime());//SimpleFieldAssign//sourceId:345001_2_66764
elm.setCycleTypeCode(reqDto.getCycleTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344988_2_66764
elm.setCycleTypeInstanceCode(item.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:344989_2_66764
elm.setCycleNumberShortName(item.getCycleNumberShortName());//SimpleFieldAssign//sourceId:345009_2_66764
elm.setTargetContentNumber(reqDto.getTargetContentNumber());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:362925_2_66764
elm.setOrderNumber(item.getOrderNumber());//SimpleFieldAssign//sourceId:344992_2_66764
elm.setRelativeOrderNumber(reqDto.getRelativeOrderNumber());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:345014_2_66764
elm.setDutyBodyOrderNum(reqDto.getDutyBodyOrderNum());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:345018_2_66764
elm.setPersonalOrderNumber(reqDto.getPersonalOrderNumber());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:345019_2_66764
elm.setWeightOrderNumber(reqDto.getWeightOrderNumber());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:345020_2_66764
elm.setBatchCode(reqDto.getBatchCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344999_2_66764
elm.setCreateBatchCode(reqDto.getBatchCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:345021_2_66764
    }
if(finalObtainEvaObjTargetCycleComRespDto1 !=null){
      elm.setEvaluationObjectId(finalObtainEvaObjTargetCycleComRespDto1.getEvaluationObjectId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344980_2_66764
elm.setEvaObjTableTypeCode(finalObtainEvaObjTargetCycleComRespDto1.getEvaObjTableTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344978_2_66764
elm.setTreeTypeCode(finalObtainEvaObjTargetCycleComRespDto1.getTreeTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344976_2_66764
elm.setBizSceneCode(finalObtainEvaObjTargetCycleComRespDto1.getBizSceneCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344994_2_66764
elm.setEvaluationSubjectTypeCode(finalObtainEvaObjTargetCycleComRespDto1.getEvaluationSubjectTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344995_2_66764
elm.setEvaluationTemplateTypeCode(finalObtainEvaObjTargetCycleComRespDto1.getEvaluationTemplateTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344996_2_66764
elm.setPlanningType(finalObtainEvaObjTargetCycleComRespDto1.getPlanningType());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344997_2_66764
elm.setTargetId(finalObtainEvaObjTargetCycleComRespDto1.getTargetId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:345002_2_66764
elm.setEvaluationTemplateId(finalObtainEvaObjTargetCycleComRespDto1.getEvaluationTemplateId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344998_2_66764
elm.setEvaluationSubjectId(finalObtainEvaObjTargetCycleComRespDto1.getEvaluationSubjectId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:345003_2_66764
elm.setSortCreateTime(finalObtainEvaObjTargetCycleComRespDto1.getSortCreateTime());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:344991_2_66764
    }
        return elm;
      }).collect(Collectors.toList());//objList-to-objLists//sourceId:1725928_1_66764
    }
  
    /*3-3-09批量增被评对象目标子周期[2494]   */
    
      bOOLEAN = mOmsEvaluationObjectTargetCycleService.batchAddEvaObjTargetCycle(listOmsEvaluationObjectTargetCycle)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
      }
ImplementInitializeTargetContFatherAndSubCycleComRespDto retData = new ImplementInitializeTargetContFatherAndSubCycleComRespDto();
  if(string_1!=null){
      retData.setEvaObjTargetCycleId(string_1);//SimpleFieldAssign//sourceId:1728247_1
    }
if(obtainEvaObjTargetCycleComRespDto_1!=null){
      retData.setCycleStartTime(obtainEvaObjTargetCycleComRespDto_1.getCycleStartTime());//SimpleFieldAssign//sourceId:1728250_1
    }
  

  
  
return retData;
  }
/**
   * D3执行更新目标周期同体情况(公共)[9384]
   * gen by moon at 5/30/2024, 12:21:05 AM
   */
  @Trace(operationName = "D3执行更新目标周期同体情况(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementUpdateTargetCycleHomomorphicComRespDto implementUpdateTargetCycleHomomorphicCom(ImplementUpdateTargetCycleHomomorphicComReqDto reqDto){
    
      
      //virtualUsage M3准备入参：约定是  66837
      //ModelCode: receptionService
        ImplementEightReceivingFieldRespDto receptionServiceRes = null;
    ImplementEightReceivingFieldReqDto receptionServiceReq=new ImplementEightReceivingFieldReqDto();
  receptionServiceReq.setCustomField1("TRUE");//CUSTOM_CONVENTION//sourceId:1739248_1_66837
  
    /*M3准备入参：约定是[8691]  用于特殊方法接收上游入参。 */
    Assert.isNull(receptionServiceReq.getCustomField1(),"D3执行更新目标周期同体情况(公共)-M3准备入参：约定是-自定义字段1不能为空",false);
      receptionServiceRes = nbCalcTargetContent.implementEightReceivingField(receptionServiceReq);
      
      
      
//virtualUsage D2准备入参：1 目标内容工作周期初始化配置参数(公共)  69324
      PreparationTargetContCycleConfParameterComRespDto preparationTargetContCycleConfParameterComRespDto = null;
    PreparationTargetContCycleConfParameterComReqDto preparationTargetContCycleConfParameterComReqDto=new PreparationTargetContCycleConfParameterComReqDto();
if(reqDto!=null){
      preparationTargetContCycleConfParameterComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1825122_1_69324
    }
  
    /*D2准备入参：1 目标内容工作周期初始化配置参数(公共)[9675]   */
    Assert.isNull(preparationTargetContCycleConfParameterComReqDto.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D2准备入参：1 目标内容工作周期初始化配置参数(公共)-冗余评价模板ID不能为空",false);
      preparationTargetContCycleConfParameterComRespDto = fwCompTargetContComClient.preparationTargetContCycleConfParameterCom(preparationTargetContCycleConfParameterComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
//virtualUsage D3准备入参：2 查当前目标内容父周期详请  66918
      QueryEvaObjTargetCyclePlatformDetailComRespDto queryEvaObjTargetCyclePlatformDetailComRespDto = null;
    QueryEvaObjTargetCyclePlatformDetailComReqDto queryEvaObjTargetCyclePlatformDetailComReqDto=new QueryEvaObjTargetCyclePlatformDetailComReqDto();
  queryEvaObjTargetCyclePlatformDetailComReqDto.setIsArchive("FALSE");//sourceId:1733407_1_66918
if(reqDto!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1733406_1_66918
queryEvaObjTargetCyclePlatformDetailComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1733408_1_66918
    }
  
    /*D3准备入参：2 查当前目标内容父周期详请[8528]   */
    Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto.getEvaObjTargetCycleId(),"D3执行更新目标周期同体情况(公共)-D3准备入参：2 查当前目标内容父周期详请-被评对象目标周期ID不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D3准备入参：2 查当前目标内容父周期详请-冗余评价模板ID不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto.getIsArchive(),"D3执行更新目标周期同体情况(公共)-D3准备入参：2 查当前目标内容父周期详请-是否存档不能为空",false);
      queryEvaObjTargetCyclePlatformDetailComRespDto = targetCycleService.queryEvaObjTargetCyclePlatformDetailCom(queryEvaObjTargetCyclePlatformDetailComReqDto)/*vcase invoke isSameApp*/;
      
      
      
//virtualUsage D3-查询被评对象目标周期平台详情(公共)  66916
      QueryEvaObjTargetCyclePlatformDetailComRespDto queryEvaObjTargetCyclePlatformDetailComRespDto_2 = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto !=null){
          QueryEvaObjTargetCyclePlatformDetailComReqDto queryEvaObjTargetCyclePlatformDetailComReqDto_1=new QueryEvaObjTargetCyclePlatformDetailComReqDto();
  queryEvaObjTargetCyclePlatformDetailComReqDto_1.setTargetCycleContentTypeCode("TARGET");//sourceId:1733355_1_66916
queryEvaObjTargetCyclePlatformDetailComReqDto_1.setIsArchive("FALSE");//sourceId:1733359_1_66916
if(queryEvaObjTargetCyclePlatformDetailComRespDto!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto_1.setEvaObjEntityId(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1733353_1_66916
queryEvaObjTargetCyclePlatformDetailComReqDto_1.setEvaObjTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1733354_1_66916
    }
if(reqDto!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto_1.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1733356_1_66916
queryEvaObjTargetCyclePlatformDetailComReqDto_1.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1733357_1_66916
queryEvaObjTargetCyclePlatformDetailComReqDto_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1733360_1_66916
    }
  
    /*D3-查询被评对象目标周期平台详情(公共)[8528]   */
    Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_1.getEvaObjEntityId(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_1.getEvaObjTypeCode(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-被评对象类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_1.getTargetCycleContentTypeCode(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_1.getIsArchive(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-是否存档不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_1.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-冗余评价模板ID不能为空",false);
      queryEvaObjTargetCyclePlatformDetailComRespDto_2 = targetCycleService.queryEvaObjTargetCyclePlatformDetailCom(queryEvaObjTargetCyclePlatformDetailComReqDto_1)/*vcase invoke isSameApp*/;
      
      
      
           }
if((queryEvaObjTargetCyclePlatformDetailComRespDto_2!= null&& queryEvaObjTargetCyclePlatformDetailComRespDto_2.getEvaObjTargetCycleId() == null)) {
        //if(D3准备：当前目标内容父周期开始与结束时间查目标是否有相同周期ID的数据（出参是否为空判断是否是自定义周期）.被评对象目标周期ID 值等于空 )  66825
        
ObtainCheckTargetContCycleInfoComRespDto obtainCheckTargetContCycleInfoComRespDto = null;
    ObtainCheckTargetContCycleInfoComReqDto obtainCheckTargetContCycleInfoComReqDto=new ObtainCheckTargetContCycleInfoComReqDto();
  if(reqDto!=null){
      obtainCheckTargetContCycleInfoComReqDto.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1728852_1_66832
obtainCheckTargetContCycleInfoComReqDto.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1728853_1_66832
obtainCheckTargetContCycleInfoComReqDto.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1728855_1_66832
    }
  
    /*D3获取当前目标内容自定义标准周期信息(公共)[8777]   */
    Assert.isNull(obtainCheckTargetContCycleInfoComReqDto.getCycleStartTime(),"D3执行更新目标周期同体情况(公共)-D3获取当前目标内容自定义标准周期信息(公共)-周期开始时间不能为空",false);
Assert.isNull(obtainCheckTargetContCycleInfoComReqDto.getCycleEndTime(),"D3执行更新目标周期同体情况(公共)-D3获取当前目标内容自定义标准周期信息(公共)-周期结束时间不能为空",false);
Assert.isNull(obtainCheckTargetContCycleInfoComReqDto.getCycleTypeCode(),"D3执行更新目标周期同体情况(公共)-D3获取当前目标内容自定义标准周期信息(公共)-周期类型标识不能为空",false);
      obtainCheckTargetContCycleInfoComRespDto = targetContentService.obtainCheckTargetContCycleInfoCom(obtainCheckTargetContCycleInfoComReqDto)/*vcase invoke isSameApp*/;
      
      
      
boolean bOOLEAN ;
    if(obtainCheckTargetContCycleInfoComRespDto !=null){
          OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle=new OmsEvaluationObjectTargetCycle();
  omsEvaluationObjectTargetCycle.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1728894_1_66833
omsEvaluationObjectTargetCycle.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1728895_1_66833
if(reqDto!=null){
      omsEvaluationObjectTargetCycle.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1728866_1_66833
    }
if(obtainCheckTargetContCycleInfoComRespDto!=null){
      omsEvaluationObjectTargetCycle.setCycleId(obtainCheckTargetContCycleInfoComRespDto.getCycleId());//SimpleFieldAssign//sourceId:1728879_1_66833
omsEvaluationObjectTargetCycle.setCycleStandardName(obtainCheckTargetContCycleInfoComRespDto.getCycleStandardName());//SimpleFieldAssign//sourceId:1728917_1_66833
omsEvaluationObjectTargetCycle.setCycleStartTime(obtainCheckTargetContCycleInfoComRespDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1728918_1_66833
omsEvaluationObjectTargetCycle.setCycleEndTime(obtainCheckTargetContCycleInfoComRespDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1728919_1_66833
omsEvaluationObjectTargetCycle.setCycleTypeCode(obtainCheckTargetContCycleInfoComRespDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1728880_1_66833
omsEvaluationObjectTargetCycle.setCycleTypeInstanceCode(obtainCheckTargetContCycleInfoComRespDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:1728881_1_66833
omsEvaluationObjectTargetCycle.setCycleNumberShortName(obtainCheckTargetContCycleInfoComRespDto.getCycleNumberShortName());//SimpleFieldAssign//sourceId:1728920_1_66833
omsEvaluationObjectTargetCycle.setOrderNumber(obtainCheckTargetContCycleInfoComRespDto.getOrderNumber());//SimpleFieldAssign//sourceId:1728921_1_66833
    }
  
    /*3-3-09回写租户自定义标准周期ID[2317]   */
    Assert.isNull(omsEvaluationObjectTargetCycle.getEvaObjTargetCycleId(),"D3执行更新目标周期同体情况(公共)-3-3-09回写租户自定义标准周期ID-被评对象目标周期ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleId(),"D3执行更新目标周期同体情况(公共)-3-3-09回写租户自定义标准周期ID-周期ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleStandardName(),"D3执行更新目标周期同体情况(公共)-3-3-09回写租户自定义标准周期ID-周期名称不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleStartTime(),"D3执行更新目标周期同体情况(公共)-3-3-09回写租户自定义标准周期ID-目标计划开始时间不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleEndTime(),"D3执行更新目标周期同体情况(公共)-3-3-09回写租户自定义标准周期ID-目标计划结束时间不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleTypeCode(),"D3执行更新目标周期同体情况(公共)-3-3-09回写租户自定义标准周期ID-周期类型标识不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getOrderNumber(),"D3执行更新目标周期同体情况(公共)-3-3-09回写租户自定义标准周期ID-周期排序不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getOperationInductionId(),"D3执行更新目标周期同体情况(公共)-3-3-09回写租户自定义标准周期ID-操作人就职记录ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getOperateTime(),"D3执行更新目标周期同体情况(公共)-3-3-09回写租户自定义标准周期ID-操作时间不能为空",false);
      bOOLEAN = mOmsEvaluationObjectTargetCycleService.updateEvaObjTargetCycle(omsEvaluationObjectTargetCycle)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
ImplementAmendTargetContOpenCustomExecuteCycleComRespDto implementAmendTargetContOpenCustomExecuteCycleComRespDto = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto !=null){
          ImplementAmendTargetContOpenCustomExecuteCycleComReqDto implementAmendTargetContOpenCustomExecuteCycleComReqDto=new ImplementAmendTargetContOpenCustomExecuteCycleComReqDto();
  implementAmendTargetContOpenCustomExecuteCycleComReqDto.setIsOpenCustomExecuteCycle("TRUE");//sourceId:1729821_1_66858
if(queryEvaObjTargetCyclePlatformDetailComRespDto!=null){
      implementAmendTargetContOpenCustomExecuteCycleComReqDto.setTargetCycleContentId(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1729822_1_66858
implementAmendTargetContOpenCustomExecuteCycleComReqDto.setTargetCycleContentTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1729823_1_66858
    }
if(reqDto!=null){
      implementAmendTargetContOpenCustomExecuteCycleComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1729824_1_66858
    }
  
    /*D3回写当前目标内容开启自定义执行周期(公共)[9378]   */
    Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto.getIsOpenCustomExecuteCycle(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-是否开启自定义执行周期不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto.getTargetCycleContentId(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto.getTargetCycleContentTypeCode(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-冗余评价模板ID不能为空",false);
      implementAmendTargetContOpenCustomExecuteCycleComRespDto = indexSystemService.implementAmendTargetContOpenCustomExecuteCycleCom(implementAmendTargetContOpenCustomExecuteCycleComReqDto)/*vcase invoke isSameApp*/;
      
      
      
           }
      }
else if((queryEvaObjTargetCyclePlatformDetailComRespDto_2!= null&& queryEvaObjTargetCyclePlatformDetailComRespDto_2.getEvaObjTargetCycleId() != null )){
       //elseif(D3准备：当前目标内容父周期开始与结束时间查目标的父或中周期（出参是否为空判断是否是自定义周期）.被评对象目标周期ID 值不等于空 )  66871
      
boolean bOOLEAN_1 ;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto_2 !=null){
          OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle_1=new OmsEvaluationObjectTargetCycle();
  omsEvaluationObjectTargetCycle_1.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1730783_1_66876
omsEvaluationObjectTargetCycle_1.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1730784_1_66876
if(reqDto!=null){
      omsEvaluationObjectTargetCycle_1.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1730780_1_66876
    }
if(queryEvaObjTargetCyclePlatformDetailComRespDto_2!=null){
omsEvaluationObjectTargetCycle_1.setCycleId(queryEvaObjTargetCyclePlatformDetailComRespDto_2.getCycleId());//SimpleFieldAssign//sourceId:1737368_1_66876
omsEvaluationObjectTargetCycle_1.setCycleStandardName(queryEvaObjTargetCyclePlatformDetailComRespDto_2.getCycleStandardName());//SimpleFieldAssign//sourceId:1737369_1_66876
omsEvaluationObjectTargetCycle_1.setCycleStartTime(queryEvaObjTargetCyclePlatformDetailComRespDto_2.getCycleStartTime());//SimpleFieldAssign//sourceId:1737370_1_66876
omsEvaluationObjectTargetCycle_1.setCycleEndTime(queryEvaObjTargetCyclePlatformDetailComRespDto_2.getCycleEndTime());//SimpleFieldAssign//sourceId:1737371_1_66876
omsEvaluationObjectTargetCycle_1.setCycleTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto_2.getCycleTypeCode());//SimpleFieldAssign//sourceId:1737372_1_66876
omsEvaluationObjectTargetCycle_1.setCycleTypeInstanceCode(queryEvaObjTargetCyclePlatformDetailComRespDto_2.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:1730781_1_66876
omsEvaluationObjectTargetCycle_1.setCycleNumberShortName(queryEvaObjTargetCyclePlatformDetailComRespDto_2.getCycleNumberShortName());//SimpleFieldAssign//sourceId:1730782_1_66876
omsEvaluationObjectTargetCycle_1.setOrderNumber(queryEvaObjTargetCyclePlatformDetailComRespDto_2.getOrderNumber());//SimpleFieldAssign//sourceId:1737373_1_66876
    }

    /*3-3-09回写目标周期类型实例标识与名称[2317]   */
    Assert.isNull(omsEvaluationObjectTargetCycle_1.getEvaObjTargetCycleId(),"D3执行更新目标周期同体情况(公共)-3-3-09回写目标周期类型实例标识与名称-被评对象目标周期ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle_1.getOperationInductionId(),"D3执行更新目标周期同体情况(公共)-3-3-09回写目标周期类型实例标识与名称-操作人就职记录ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle_1.getOperateTime(),"D3执行更新目标周期同体情况(公共)-3-3-09回写目标周期类型实例标识与名称-操作时间不能为空",false);
      bOOLEAN_1 = mOmsEvaluationObjectTargetCycleService.updateEvaObjTargetCycle(omsEvaluationObjectTargetCycle_1)/*vcase invoke 本地 method 方法调用;*/;



           }
    }
if((preparationTargetContCycleConfParameterComRespDto!= null&&  preparationTargetContCycleConfParameterComRespDto.getOpenMidCycle() !=null && preparationTargetContCycleConfParameterComRespDto.getOpenMidCycle().equals("TRUE"))) {
        //if(D2准备入参：1 目标内容工作周期初始化配置参数(公共).是否开启中期 等于 是)  66794

QueryEvaObjTargetCyclePlatformDetailComRespDto queryEvaObjTargetCyclePlatformDetailComRespDto_4 = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto !=null){
          QueryEvaObjTargetCyclePlatformDetailComReqDto queryEvaObjTargetCyclePlatformDetailComReqDto_2=new QueryEvaObjTargetCyclePlatformDetailComReqDto();
  queryEvaObjTargetCyclePlatformDetailComReqDto_2.setTargetCycleContentTypeCode("TARGET");//sourceId:1733355_1_66920
queryEvaObjTargetCyclePlatformDetailComReqDto_2.setIsArchive("FALSE");//sourceId:1733359_1_66920
if(queryEvaObjTargetCyclePlatformDetailComRespDto!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto_2.setEvaObjEntityId(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1733353_1_66920
queryEvaObjTargetCyclePlatformDetailComReqDto_2.setEvaObjTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1733354_1_66920
    }
if(receptionServiceRes!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto_2.setIsMetaphase(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1733512_1_66920
    }
if(reqDto!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto_2.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1733360_1_66920
    }
  
    /*D3-查询被评对象目标周期平台详情(公共)[8528]   */
    Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_2.getEvaObjEntityId(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_2.getEvaObjTypeCode(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-被评对象类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_2.getTargetCycleContentTypeCode(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_2.getIsArchive(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-是否存档不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_2.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-冗余评价模板ID不能为空",false);
      queryEvaObjTargetCyclePlatformDetailComRespDto_4 = targetCycleService.queryEvaObjTargetCyclePlatformDetailCom(queryEvaObjTargetCyclePlatformDetailComReqDto_2)/*vcase invoke isSameApp*/;
      
      
      
           }
QueryEvaObjTargetCyclePlatformDetailComRespDto queryEvaObjTargetCyclePlatformDetailComRespDto_5 = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto !=null&&queryEvaObjTargetCyclePlatformDetailComRespDto_4 !=null){
          QueryEvaObjTargetCyclePlatformDetailComReqDto queryEvaObjTargetCyclePlatformDetailComReqDto_3=new QueryEvaObjTargetCyclePlatformDetailComReqDto();
  queryEvaObjTargetCyclePlatformDetailComReqDto_3.setTargetCycleContentTypeCode("TARGET");//sourceId:1733355_1_66921
queryEvaObjTargetCyclePlatformDetailComReqDto_3.setIsArchive("FALSE");//sourceId:1733359_1_66921
if(queryEvaObjTargetCyclePlatformDetailComRespDto!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto_3.setEvaObjEntityId(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1733353_1_66921
queryEvaObjTargetCyclePlatformDetailComReqDto_3.setEvaObjTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1733354_1_66921
    }
if(queryEvaObjTargetCyclePlatformDetailComRespDto_4!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto_3.setCycleEndTime(queryEvaObjTargetCyclePlatformDetailComRespDto_4.getCycleEndTime());//SimpleFieldAssign//sourceId:1733357_1_66921
    }
if(receptionServiceRes!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto_3.setIsSubCycle(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1733815_1_66921
    }
if(reqDto!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto_3.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1733814_1_66921
queryEvaObjTargetCyclePlatformDetailComReqDto_3.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1733360_1_66921
    }
  
    /*D3-查询被评对象目标周期平台详情(公共)[8528]   */
    Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_3.getEvaObjEntityId(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_3.getEvaObjTypeCode(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-被评对象类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_3.getTargetCycleContentTypeCode(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_3.getIsArchive(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-是否存档不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_3.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D3-查询被评对象目标周期平台详情(公共)-冗余评价模板ID不能为空",false);
      queryEvaObjTargetCyclePlatformDetailComRespDto_5 = targetCycleService.queryEvaObjTargetCyclePlatformDetailCom(queryEvaObjTargetCyclePlatformDetailComReqDto_3)/*vcase invoke isSameApp*/;
      
      

           }
CheckTimeScopeSearchComRespDto checkTimeScopeSearchComRespDto = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto_4 !=null){
          CheckTimeScopeSearchComReqDto checkTimeScopeSearchComReqDto=new CheckTimeScopeSearchComReqDto();
  if(reqDto!=null){
      checkTimeScopeSearchComReqDto.setCurrentTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1728251_1_66796
    }
if(queryEvaObjTargetCyclePlatformDetailComRespDto_4!=null){
      checkTimeScopeSearchComReqDto.setCompareTime(queryEvaObjTargetCyclePlatformDetailComRespDto_4.getCycleEndTime());//SimpleFieldAssign//sourceId:1728253_1_66796
    }
  
    /*D2两个时间对比大小(公共)[3297]   */
    Assert.isNull(checkTimeScopeSearchComReqDto.getCurrentTime(),"D3执行更新目标周期同体情况(公共)-D2两个时间对比大小(公共)-当前时间不能为空",false);
Assert.isNull(checkTimeScopeSearchComReqDto.getCompareTime(),"D3执行更新目标周期同体情况(公共)-D2两个时间对比大小(公共)-比较时间不能为空",false);
      checkTimeScopeSearchComRespDto = fwCompDivineDataClient.checkTimeScopeSearchCom(checkTimeScopeSearchComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
           }
CheckTimeScopeSearchComRespDto checkTimeScopeSearchComRespDto_2 = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto_4 !=null){
          CheckTimeScopeSearchComReqDto checkTimeScopeSearchComReqDto_1=new CheckTimeScopeSearchComReqDto();
  if(reqDto!=null){
      checkTimeScopeSearchComReqDto_1.setCurrentTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1728251_1_66797
    }
if(queryEvaObjTargetCyclePlatformDetailComRespDto_4!=null){
      checkTimeScopeSearchComReqDto_1.setCompareTime(queryEvaObjTargetCyclePlatformDetailComRespDto_4.getCycleEndTime());//SimpleFieldAssign//sourceId:1728253_1_66797
    }
  
    /*D2两个时间对比大小(公共)[3297]   */
    Assert.isNull(checkTimeScopeSearchComReqDto_1.getCurrentTime(),"D3执行更新目标周期同体情况(公共)-D2两个时间对比大小(公共)-当前时间不能为空",false);
Assert.isNull(checkTimeScopeSearchComReqDto_1.getCompareTime(),"D3执行更新目标周期同体情况(公共)-D2两个时间对比大小(公共)-比较时间不能为空",false);
      checkTimeScopeSearchComRespDto_2 = fwCompDivineDataClient.checkTimeScopeSearchCom(checkTimeScopeSearchComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
           }
CheckTimeScopeSearchComRespDto checkTimeScopeSearchComRespDto_3 = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto_5 !=null){
          CheckTimeScopeSearchComReqDto checkTimeScopeSearchComReqDto_2=new CheckTimeScopeSearchComReqDto();
  if(reqDto!=null){
      checkTimeScopeSearchComReqDto_2.setCurrentTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1728251_1_66815
    }
if(queryEvaObjTargetCyclePlatformDetailComRespDto_5!=null){
      checkTimeScopeSearchComReqDto_2.setCompareTime(queryEvaObjTargetCyclePlatformDetailComRespDto_5.getCycleStartTime());//SimpleFieldAssign//sourceId:1728253_1_66815
    }
  
    /*D2两个时间对比大小(公共)[3297]   */
    Assert.isNull(checkTimeScopeSearchComReqDto_2.getCurrentTime(),"D3执行更新目标周期同体情况(公共)-D2两个时间对比大小(公共)-当前时间不能为空",false);
Assert.isNull(checkTimeScopeSearchComReqDto_2.getCompareTime(),"D3执行更新目标周期同体情况(公共)-D2两个时间对比大小(公共)-比较时间不能为空",false);
      checkTimeScopeSearchComRespDto_3 = fwCompDivineDataClient.checkTimeScopeSearchCom(checkTimeScopeSearchComReqDto_2).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
           }
CheckTimeScopeSearchComRespDto checkTimeScopeSearchComRespDto_4 = null;
    CheckTimeScopeSearchComReqDto checkTimeScopeSearchComReqDto_3=new CheckTimeScopeSearchComReqDto();
  if(reqDto!=null){
      checkTimeScopeSearchComReqDto_3.setCurrentTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1728251_1_66816
checkTimeScopeSearchComReqDto_3.setCompareTime(reqDto.getTargetCycleStartTime());//SimpleFieldAssign//sourceId:1728253_1_66816
    }
  
    /*D2两个时间对比大小(公共)[3297]   */
    Assert.isNull(checkTimeScopeSearchComReqDto_3.getCurrentTime(),"D3执行更新目标周期同体情况(公共)-D2两个时间对比大小(公共)-当前时间不能为空",false);
Assert.isNull(checkTimeScopeSearchComReqDto_3.getCompareTime(),"D3执行更新目标周期同体情况(公共)-D2两个时间对比大小(公共)-比较时间不能为空",false);
      checkTimeScopeSearchComRespDto_4 = fwCompDivineDataClient.checkTimeScopeSearchCom(checkTimeScopeSearchComReqDto_3).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
if((checkTimeScopeSearchComRespDto!= null&&  checkTimeScopeSearchComRespDto.getTimeCompareResult() !=null && checkTimeScopeSearchComRespDto.getTimeCompareResult().equals("BEFORE")||checkTimeScopeSearchComRespDto!= null&&  checkTimeScopeSearchComRespDto.getTimeCompareResult() !=null && checkTimeScopeSearchComRespDto.getTimeCompareResult().equals("PRESENT"))&&(checkTimeScopeSearchComRespDto_2!= null&&  checkTimeScopeSearchComRespDto_2.getTimeCompareResult() !=null && checkTimeScopeSearchComRespDto_2.getTimeCompareResult().equals("BEFORE"))) {
        //if((D2当前目标内容父周期结束时间与目标的中期结束时间对比（A）.时间比较结果 等于 之前（小于） or D2当前目标内容父周期结束时间与目标的中期结束时间对比（A）.时间比较结果 等于 当前（等于）) and D2当前目标内容父周期开始时间与目标的中期结束时间对比（B）.时间比较结果 等于 之前（小于）)  66798
        
boolean bOOLEAN_2 ;
    OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle_2=new OmsEvaluationObjectTargetCycle();
  omsEvaluationObjectTargetCycle_2.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1729328_1_66839
omsEvaluationObjectTargetCycle_2.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1729329_1_66839
if(reqDto!=null){
      omsEvaluationObjectTargetCycle_2.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1729030_1_66839
    }
if(receptionServiceRes!=null){
      omsEvaluationObjectTargetCycle_2.setIsMetaphase(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1729032_1_66839
    }
  
    /*3-3-09回写当前目标周期子或中[2317]   */
    Assert.isNull(omsEvaluationObjectTargetCycle_2.getEvaObjTargetCycleId(),"D3执行更新目标周期同体情况(公共)-3-3-09回写当前目标周期子或中-被评对象目标周期ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle_2.getOperationInductionId(),"D3执行更新目标周期同体情况(公共)-3-3-09回写当前目标周期子或中-操作人就职记录ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle_2.getOperateTime(),"D3执行更新目标周期同体情况(公共)-3-3-09回写当前目标周期子或中-操作时间不能为空",false);
      bOOLEAN_2 = mOmsEvaluationObjectTargetCycleService.updateEvaObjTargetCycle(omsEvaluationObjectTargetCycle_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
ImplementAmendTargetContOpenCustomExecuteCycleComRespDto implementAmendTargetContOpenCustomExecuteCycleComRespDto_1 = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto !=null){
          ImplementAmendTargetContOpenCustomExecuteCycleComReqDto implementAmendTargetContOpenCustomExecuteCycleComReqDto_1=new ImplementAmendTargetContOpenCustomExecuteCycleComReqDto();
  implementAmendTargetContOpenCustomExecuteCycleComReqDto_1.setIsOpenCustomExecuteCycle("TRUE");//sourceId:1729821_1_66859
if(queryEvaObjTargetCyclePlatformDetailComRespDto!=null){
      implementAmendTargetContOpenCustomExecuteCycleComReqDto_1.setTargetCycleContentId(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1729822_1_66859
implementAmendTargetContOpenCustomExecuteCycleComReqDto_1.setTargetCycleContentTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1729823_1_66859
    }
if(reqDto!=null){
      implementAmendTargetContOpenCustomExecuteCycleComReqDto_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1729824_1_66859
    }
  
    /*D3回写当前目标内容开启自定义执行周期(公共)[9378]   */
    Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_1.getIsOpenCustomExecuteCycle(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-是否开启自定义执行周期不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_1.getTargetCycleContentId(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_1.getTargetCycleContentTypeCode(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_1.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-冗余评价模板ID不能为空",false);
      implementAmendTargetContOpenCustomExecuteCycleComRespDto_1 = indexSystemService.implementAmendTargetContOpenCustomExecuteCycleCom(implementAmendTargetContOpenCustomExecuteCycleComReqDto_1)/*vcase invoke isSameApp*/;
      
      
      
           }
      }
else if((checkTimeScopeSearchComRespDto!= null&&  checkTimeScopeSearchComRespDto.getTimeCompareResult() !=null && checkTimeScopeSearchComRespDto.getTimeCompareResult().equals("LATER")&&checkTimeScopeSearchComRespDto_2!= null&&  checkTimeScopeSearchComRespDto_2.getTimeCompareResult() !=null && checkTimeScopeSearchComRespDto_2.getTimeCompareResult().equals("BEFORE")&&checkTimeScopeSearchComRespDto_3!= null&&  checkTimeScopeSearchComRespDto_3.getTimeCompareResult() !=null && checkTimeScopeSearchComRespDto_3.getTimeCompareResult().equals("PRESENT"))){
       //elseif((D2当前目标内容父周期结束时间与目标的中期结束时间对比（A）.时间比较结果 等于 之后（大于） and D2当前目标内容父周期开始时间与目标的中期结束时间对比（B）.时间比较结果 等于 之前（小于） and D2当前目标内容父周期开始时间与目标的中期最后子周期开始时间对比（C）.时间比较结果 等于 当前（等于）))  66820
      
QueryEvaObjTargetCyclePlatformDetailComRespDto queryEvaObjTargetCyclePlatformDetailComRespDto_6 = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto !=null&&queryEvaObjTargetCyclePlatformDetailComRespDto_5 !=null){
          QueryEvaObjTargetCyclePlatformDetailComReqDto queryEvaObjTargetCyclePlatformDetailComReqDto_4=new QueryEvaObjTargetCyclePlatformDetailComReqDto();
  queryEvaObjTargetCyclePlatformDetailComReqDto_4.setIsSubCycle("TRUE");//sourceId:1817999_1_66923
queryEvaObjTargetCyclePlatformDetailComReqDto_4.setIsArchive("FALSE");//sourceId:1818004_1_66923
if(queryEvaObjTargetCyclePlatformDetailComRespDto!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto_4.setEvaObjEntityId(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1817996_1_66923
queryEvaObjTargetCyclePlatformDetailComReqDto_4.setEvaObjTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1817997_1_66923
queryEvaObjTargetCyclePlatformDetailComReqDto_4.setTargetCycleContentId(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1818020_1_66923
    }
if(queryEvaObjTargetCyclePlatformDetailComRespDto_5!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto_4.setCycleEndTime(queryEvaObjTargetCyclePlatformDetailComRespDto_5.getCycleEndTime());//SimpleFieldAssign//sourceId:1818003_1_66923
    }
if(reqDto!=null){
      queryEvaObjTargetCyclePlatformDetailComReqDto_4.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1818001_1_66923
    }
  
    /*D3-查子中同体的目标子周期ID（接上文目标最后一个子周期的结束时间来查询）[8528]   */
    Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_4.getEvaObjEntityId(),"D3执行更新目标周期同体情况(公共)-D3-查子中同体的目标子周期ID（接上文目标最后一个子周期的结束时间来查询）-被评对象内容表主键ID不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_4.getEvaObjTypeCode(),"D3执行更新目标周期同体情况(公共)-D3-查子中同体的目标子周期ID（接上文目标最后一个子周期的结束时间来查询）-被评对象类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_4.getTargetCycleContentId(),"D3执行更新目标周期同体情况(公共)-D3-查子中同体的目标子周期ID（接上文目标最后一个子周期的结束时间来查询）-关联目标内容ID不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_4.getIsSubCycle(),"D3执行更新目标周期同体情况(公共)-D3-查子中同体的目标子周期ID（接上文目标最后一个子周期的结束时间来查询）-是否子周期不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_4.getIsArchive(),"D3执行更新目标周期同体情况(公共)-D3-查子中同体的目标子周期ID（接上文目标最后一个子周期的结束时间来查询）-是否存档不能为空",false);
Assert.isNull(queryEvaObjTargetCyclePlatformDetailComReqDto_4.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D3-查子中同体的目标子周期ID（接上文目标最后一个子周期的结束时间来查询）-冗余评价模板ID不能为空",false);
      queryEvaObjTargetCyclePlatformDetailComRespDto_6 = targetCycleService.queryEvaObjTargetCyclePlatformDetailCom(queryEvaObjTargetCyclePlatformDetailComReqDto_4)/*vcase invoke isSameApp*/;
      
      
      
           }
boolean bOOLEAN_3 ;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto_6 !=null){
          OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle_3=new OmsEvaluationObjectTargetCycle();
  omsEvaluationObjectTargetCycle_3.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1729328_1_66847
omsEvaluationObjectTargetCycle_3.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1729329_1_66847
if(queryEvaObjTargetCyclePlatformDetailComRespDto_6!=null){
      omsEvaluationObjectTargetCycle_3.setEvaObjTargetCycleId(queryEvaObjTargetCyclePlatformDetailComRespDto_6.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1729030_1_66847
    }
if(receptionServiceRes!=null){
      omsEvaluationObjectTargetCycle_3.setIsMetaphase(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1729032_1_66847
    }
  
    /*3-3-09回写当前目标周期子或中[2317]   */
    Assert.isNull(omsEvaluationObjectTargetCycle_3.getEvaObjTargetCycleId(),"D3执行更新目标周期同体情况(公共)-3-3-09回写当前目标周期子或中-被评对象目标周期ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle_3.getOperationInductionId(),"D3执行更新目标周期同体情况(公共)-3-3-09回写当前目标周期子或中-操作人就职记录ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle_3.getOperateTime(),"D3执行更新目标周期同体情况(公共)-3-3-09回写当前目标周期子或中-操作时间不能为空",false);
      bOOLEAN_3 = mOmsEvaluationObjectTargetCycleService.updateEvaObjTargetCycle(omsEvaluationObjectTargetCycle_3)/*vcase invoke 本地 method 方法调用;*/;
      
      

           }
ImplementAmendTargetContOpenCustomExecuteCycleComRespDto implementAmendTargetContOpenCustomExecuteCycleComRespDto_2 = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto !=null){
          ImplementAmendTargetContOpenCustomExecuteCycleComReqDto implementAmendTargetContOpenCustomExecuteCycleComReqDto_2=new ImplementAmendTargetContOpenCustomExecuteCycleComReqDto();
  implementAmendTargetContOpenCustomExecuteCycleComReqDto_2.setIsOpenCustomExecuteCycle("TRUE");//sourceId:1729821_1_66860
if(queryEvaObjTargetCyclePlatformDetailComRespDto!=null){
      implementAmendTargetContOpenCustomExecuteCycleComReqDto_2.setTargetCycleContentId(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1729822_1_66860
implementAmendTargetContOpenCustomExecuteCycleComReqDto_2.setTargetCycleContentTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1729823_1_66860
    }
if(reqDto!=null){
      implementAmendTargetContOpenCustomExecuteCycleComReqDto_2.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1729824_1_66860
    }
  
    /*D3回写当前目标内容开启自定义执行周期(公共)[9378]   */
    Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_2.getIsOpenCustomExecuteCycle(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-是否开启自定义执行周期不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_2.getTargetCycleContentId(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_2.getTargetCycleContentTypeCode(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_2.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-冗余评价模板ID不能为空",false);
      implementAmendTargetContOpenCustomExecuteCycleComRespDto_2 = indexSystemService.implementAmendTargetContOpenCustomExecuteCycleCom(implementAmendTargetContOpenCustomExecuteCycleComReqDto_2)/*vcase invoke isSameApp*/;
      
      
      
           }
    }
else if((checkTimeScopeSearchComRespDto!= null&&  checkTimeScopeSearchComRespDto.getTimeCompareResult() !=null && checkTimeScopeSearchComRespDto.getTimeCompareResult().equals("LATER")&&checkTimeScopeSearchComRespDto_3!= null&&  checkTimeScopeSearchComRespDto_3.getTimeCompareResult() !=null && checkTimeScopeSearchComRespDto_3.getTimeCompareResult().equals("BEFORE")&&checkTimeScopeSearchComRespDto_4!= null&&  checkTimeScopeSearchComRespDto_4.getTimeCompareResult() !=null && checkTimeScopeSearchComRespDto_4.getTimeCompareResult().equals("LATER"))){
       //elseif((D2当前目标内容父周期结束时间与目标的中期结束时间对比（A）.时间比较结果 等于 之后（大于） and D2当前目标内容父周期开始时间与目标的中期最后子周期开始时间对比（C）.时间比较结果 等于 之前（小于） and D2当前目标内容父周期开始时间与目标的父周期开始时间对比（D）.时间比较结果 等于 之后（大于）))  66821
      
ObtainCheckTargetContCycleInfoComRespDto obtainCheckTargetContCycleInfoComRespDto_2 = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto_4 !=null){
          ObtainCheckTargetContCycleInfoComReqDto obtainCheckTargetContCycleInfoComReqDto_1=new ObtainCheckTargetContCycleInfoComReqDto();
  if(reqDto!=null){
      obtainCheckTargetContCycleInfoComReqDto_1.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1728852_1_66857
obtainCheckTargetContCycleInfoComReqDto_1.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1728855_1_66857
    }
if(queryEvaObjTargetCyclePlatformDetailComRespDto_4!=null){
      obtainCheckTargetContCycleInfoComReqDto_1.setCycleEndTime(queryEvaObjTargetCyclePlatformDetailComRespDto_4.getCycleEndTime());//SimpleFieldAssign//sourceId:1728853_1_66857
    }
  
    /*D3获取当前目标内容自定义标准周期信息(公共)[8777]   */
    Assert.isNull(obtainCheckTargetContCycleInfoComReqDto_1.getCycleStartTime(),"D3执行更新目标周期同体情况(公共)-D3获取当前目标内容自定义标准周期信息(公共)-周期开始时间不能为空",false);
Assert.isNull(obtainCheckTargetContCycleInfoComReqDto_1.getCycleEndTime(),"D3执行更新目标周期同体情况(公共)-D3获取当前目标内容自定义标准周期信息(公共)-周期结束时间不能为空",false);
Assert.isNull(obtainCheckTargetContCycleInfoComReqDto_1.getCycleTypeCode(),"D3执行更新目标周期同体情况(公共)-D3获取当前目标内容自定义标准周期信息(公共)-周期类型标识不能为空",false);
      obtainCheckTargetContCycleInfoComRespDto_2 = targetContentService.obtainCheckTargetContCycleInfoCom(obtainCheckTargetContCycleInfoComReqDto_1)/*vcase invoke isSameApp*/;
      
      
      
           }
ImplementInitializeTargetContMidCycleComRespDto implementInitializeTargetContMidCycleComRespDto = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto !=null&&obtainCheckTargetContCycleInfoComRespDto_2 !=null){
          ImplementInitializeTargetContMidCycleComReqDto implementInitializeTargetContMidCycleComReqDto=new ImplementInitializeTargetContMidCycleComReqDto();
  if(queryEvaObjTargetCyclePlatformDetailComRespDto!=null){
      implementInitializeTargetContMidCycleComReqDto.setEvaObjTargetCycleCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1729466_1_66848
implementInitializeTargetContMidCycleComReqDto.setParentEvaObjTargetCycleId(queryEvaObjTargetCyclePlatformDetailComRespDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1729467_1_66848
implementInitializeTargetContMidCycleComReqDto.setCyclelAlias(queryEvaObjTargetCyclePlatformDetailComRespDto.getCyclelAlias());//SimpleFieldAssign//sourceId:1729468_1_66848
implementInitializeTargetContMidCycleComReqDto.setEvaluationObjectId(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaluationObjectId());//SimpleFieldAssign//sourceId:1729469_1_66848
implementInitializeTargetContMidCycleComReqDto.setEvaObjEntityId(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1729470_1_66848
implementInitializeTargetContMidCycleComReqDto.setEvaObjTableTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjTableTypeCode());//SimpleFieldAssign//sourceId:1729471_1_66848
implementInitializeTargetContMidCycleComReqDto.setEvaObjTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1729472_1_66848
implementInitializeTargetContMidCycleComReqDto.setTreeTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getTreeTypeCode());//SimpleFieldAssign//sourceId:1729473_1_66848
implementInitializeTargetContMidCycleComReqDto.setTargetCycleContentId(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1729474_1_66848
implementInitializeTargetContMidCycleComReqDto.setTargetCycleContentTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1729475_1_66848
implementInitializeTargetContMidCycleComReqDto.setIndicatorKind(queryEvaObjTargetCyclePlatformDetailComRespDto.getIndicatorKind());//SimpleFieldAssign//sourceId:1729476_1_66848
implementInitializeTargetContMidCycleComReqDto.setIsCustomObjective(queryEvaObjTargetCyclePlatformDetailComRespDto.getIsCustomObjective());//SimpleFieldAssign//sourceId:1729477_1_66848
implementInitializeTargetContMidCycleComReqDto.setBizSceneCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getBizSceneCode());//SimpleFieldAssign//sourceId:1729485_1_66848
implementInitializeTargetContMidCycleComReqDto.setEvaluationSubjectTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaluationSubjectTypeCode());//SimpleFieldAssign//sourceId:1729486_1_66848
implementInitializeTargetContMidCycleComReqDto.setEvaluationTemplateTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaluationTemplateTypeCode());//SimpleFieldAssign//sourceId:1729487_1_66848
implementInitializeTargetContMidCycleComReqDto.setPlanningType(queryEvaObjTargetCyclePlatformDetailComRespDto.getPlanningType());//SimpleFieldAssign//sourceId:1729488_1_66848
implementInitializeTargetContMidCycleComReqDto.setTargetId(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetId());//SimpleFieldAssign//sourceId:1729489_1_66848
implementInitializeTargetContMidCycleComReqDto.setEvaluationTemplateId(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1729491_1_66848
implementInitializeTargetContMidCycleComReqDto.setEvaluationSubjectId(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaluationSubjectId());//SimpleFieldAssign//sourceId:1729490_1_66848
implementInitializeTargetContMidCycleComReqDto.setRelativeOrderNumber(queryEvaObjTargetCyclePlatformDetailComRespDto.getRelativeOrderNumber());//SimpleFieldAssign//sourceId:1729494_1_66848
implementInitializeTargetContMidCycleComReqDto.setDutyBodyOrderNum(queryEvaObjTargetCyclePlatformDetailComRespDto.getDutyBodyOrderNum());//SimpleFieldAssign//sourceId:1729495_1_66848
implementInitializeTargetContMidCycleComReqDto.setPersonalOrderNumber(queryEvaObjTargetCyclePlatformDetailComRespDto.getPersonalOrderNumber());//SimpleFieldAssign//sourceId:1729496_1_66848
implementInitializeTargetContMidCycleComReqDto.setWeightOrderNumber(queryEvaObjTargetCyclePlatformDetailComRespDto.getWeightOrderNumber());//SimpleFieldAssign//sourceId:1729497_1_66848
implementInitializeTargetContMidCycleComReqDto.setSortCreateTime(queryEvaObjTargetCyclePlatformDetailComRespDto.getSortCreateTime());//SimpleFieldAssign//sourceId:1729492_1_66848
implementInitializeTargetContMidCycleComReqDto.setBatchCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getBatchCode());//SimpleFieldAssign//sourceId:1729498_1_66848
    }
if(obtainCheckTargetContCycleInfoComRespDto_2!=null){
      implementInitializeTargetContMidCycleComReqDto.setCycleId(obtainCheckTargetContCycleInfoComRespDto_2.getCycleId());//SimpleFieldAssign//sourceId:1729478_1_66848
implementInitializeTargetContMidCycleComReqDto.setCycleStandardName(obtainCheckTargetContCycleInfoComRespDto_2.getCycleStandardName());//SimpleFieldAssign//sourceId:1729479_1_66848
implementInitializeTargetContMidCycleComReqDto.setCycleStartTime(obtainCheckTargetContCycleInfoComRespDto_2.getCycleStartTime());//SimpleFieldAssign//sourceId:1729480_1_66848
implementInitializeTargetContMidCycleComReqDto.setCycleEndTime(obtainCheckTargetContCycleInfoComRespDto_2.getCycleEndTime());//SimpleFieldAssign//sourceId:1729481_1_66848
implementInitializeTargetContMidCycleComReqDto.setCycleTypeCode(obtainCheckTargetContCycleInfoComRespDto_2.getCycleTypeCode());//SimpleFieldAssign//sourceId:1729482_1_66848
implementInitializeTargetContMidCycleComReqDto.setCycleTypeInstanceCode(obtainCheckTargetContCycleInfoComRespDto_2.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:1729483_1_66848
implementInitializeTargetContMidCycleComReqDto.setCycleNumberShortName(obtainCheckTargetContCycleInfoComRespDto_2.getCycleNumberShortName());//SimpleFieldAssign//sourceId:1729484_1_66848
implementInitializeTargetContMidCycleComReqDto.setOrderNumber(obtainCheckTargetContCycleInfoComRespDto_2.getOrderNumber());//SimpleFieldAssign//sourceId:1729493_1_66848
    }
if(reqDto!=null){
      implementInitializeTargetContMidCycleComReqDto.setTargetContentNumber(reqDto.getTargetContentNumber());//SimpleFieldAssign//sourceId:1801521_1_66848
    }

    /*D3初始化目标内容中期(公共)[9390]   */
    Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getEvaObjTargetCycleCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-被评对象目标周期标识不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getCyclelAlias(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-目标周期简称不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getEvaObjEntityId(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getEvaObjTableTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-被评对象内容表类型编码不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getEvaObjTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getTreeTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-树类型编码不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getTargetCycleContentId(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getTargetCycleContentTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getCycleId(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-周期ID不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getCycleStandardName(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-周期名称不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getCycleStartTime(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-目标计划开始时间不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getCycleEndTime(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-目标计划结束时间不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getCycleTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-周期类型标识不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getOrderNumber(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-周期排序不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getBizSceneCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余业务场景标识配置项不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getEvaluationSubjectTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余评价主题类型配置项不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getEvaluationTemplateTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余评价模板类型配置项不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getPlanningType(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余规划类型不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getTargetId(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余目标ID不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getEvaluationSubjectId(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余评价主题ID不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getRelativeOrderNumber(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-相对上级排序不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getSortCreateTime(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-评价模板创建时间排序不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto.getBatchCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-批次标识不能为空",false);
      implementInitializeTargetContMidCycleComRespDto = implementInitializeTargetContMidCycleCom(implementInitializeTargetContMidCycleComReqDto)/*vcase invoke 同服务,同domain*/;
      
      
      
           }
ImplementAmendTargetContOpenCustomExecuteCycleComRespDto implementAmendTargetContOpenCustomExecuteCycleComRespDto_3 = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto !=null){
          ImplementAmendTargetContOpenCustomExecuteCycleComReqDto implementAmendTargetContOpenCustomExecuteCycleComReqDto_3=new ImplementAmendTargetContOpenCustomExecuteCycleComReqDto();
  implementAmendTargetContOpenCustomExecuteCycleComReqDto_3.setIsOpenCustomExecuteCycle("TRUE");//sourceId:1729821_1_66861
if(queryEvaObjTargetCyclePlatformDetailComRespDto!=null){
      implementAmendTargetContOpenCustomExecuteCycleComReqDto_3.setTargetCycleContentId(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1729822_1_66861
implementAmendTargetContOpenCustomExecuteCycleComReqDto_3.setTargetCycleContentTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1729823_1_66861
    }
if(reqDto!=null){
      implementAmendTargetContOpenCustomExecuteCycleComReqDto_3.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1729824_1_66861
    }
  
    /*D3回写当前目标内容开启自定义执行周期(公共)[9378]   */
    Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_3.getIsOpenCustomExecuteCycle(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-是否开启自定义执行周期不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_3.getTargetCycleContentId(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_3.getTargetCycleContentTypeCode(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_3.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-冗余评价模板ID不能为空",false);
      implementAmendTargetContOpenCustomExecuteCycleComRespDto_3 = indexSystemService.implementAmendTargetContOpenCustomExecuteCycleCom(implementAmendTargetContOpenCustomExecuteCycleComReqDto_3)/*vcase invoke isSameApp*/;
      
      
      
           }
    }
else if((checkTimeScopeSearchComRespDto!= null&&  checkTimeScopeSearchComRespDto.getTimeCompareResult() !=null && checkTimeScopeSearchComRespDto.getTimeCompareResult().equals("LATER")&&checkTimeScopeSearchComRespDto_3!= null&&  checkTimeScopeSearchComRespDto_3.getTimeCompareResult() !=null && checkTimeScopeSearchComRespDto_3.getTimeCompareResult().equals("BEFORE")&&checkTimeScopeSearchComRespDto_4!= null&&  checkTimeScopeSearchComRespDto_4.getTimeCompareResult() !=null && checkTimeScopeSearchComRespDto_4.getTimeCompareResult().equals("PRESENT"))){
       //elseif((D2当前目标内容父周期结束时间与目标的中期结束时间对比（A）.时间比较结果 等于 之后（大于） and D2当前目标内容父周期开始时间与目标的中期最后子周期开始时间对比（C）.时间比较结果 等于 之前（小于） and D2当前目标内容父周期开始时间与目标的父周期开始时间对比（D）.时间比较结果 等于 当前（等于）))  66822
      
ImplementInitializeTargetContMidCycleComRespDto implementInitializeTargetContMidCycleComRespDto_1 = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto !=null&&queryEvaObjTargetCyclePlatformDetailComRespDto_4 !=null){
          ImplementInitializeTargetContMidCycleComReqDto implementInitializeTargetContMidCycleComReqDto_1=new ImplementInitializeTargetContMidCycleComReqDto();
  if(queryEvaObjTargetCyclePlatformDetailComRespDto!=null){
      implementInitializeTargetContMidCycleComReqDto_1.setEvaObjTargetCycleCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1729466_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setParentEvaObjTargetCycleId(queryEvaObjTargetCyclePlatformDetailComRespDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1729467_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setCyclelAlias(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleName());//SimpleFieldAssign//sourceId:1729468_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setEvaluationObjectId(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaluationObjectId());//SimpleFieldAssign//sourceId:1729469_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setEvaObjEntityId(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1729470_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setEvaObjTableTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjTableTypeCode());//SimpleFieldAssign//sourceId:1729471_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setEvaObjTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1729472_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setTreeTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getTreeTypeCode());//SimpleFieldAssign//sourceId:1729473_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setTargetCycleContentId(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1729474_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setTargetCycleContentTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1729475_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setIndicatorKind(queryEvaObjTargetCyclePlatformDetailComRespDto.getIndicatorKind());//SimpleFieldAssign//sourceId:1729476_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setIsCustomObjective(queryEvaObjTargetCyclePlatformDetailComRespDto.getIsCustomObjective());//SimpleFieldAssign//sourceId:1729477_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setBizSceneCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getBizSceneCode());//SimpleFieldAssign//sourceId:1729485_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setEvaluationSubjectTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaluationSubjectTypeCode());//SimpleFieldAssign//sourceId:1729486_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setEvaluationTemplateTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaluationTemplateTypeCode());//SimpleFieldAssign//sourceId:1729487_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setPlanningType(queryEvaObjTargetCyclePlatformDetailComRespDto.getPlanningType());//SimpleFieldAssign//sourceId:1729488_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setTargetId(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetId());//SimpleFieldAssign//sourceId:1729489_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setEvaluationTemplateId(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1729491_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setEvaluationSubjectId(queryEvaObjTargetCyclePlatformDetailComRespDto.getEvaluationSubjectId());//SimpleFieldAssign//sourceId:1729490_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setRelativeOrderNumber(queryEvaObjTargetCyclePlatformDetailComRespDto.getRelativeOrderNumber());//SimpleFieldAssign//sourceId:1729494_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setDutyBodyOrderNum(queryEvaObjTargetCyclePlatformDetailComRespDto.getDutyBodyOrderNum());//SimpleFieldAssign//sourceId:1729495_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setPersonalOrderNumber(queryEvaObjTargetCyclePlatformDetailComRespDto.getPersonalOrderNumber());//SimpleFieldAssign//sourceId:1729496_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setWeightOrderNumber(queryEvaObjTargetCyclePlatformDetailComRespDto.getWeightOrderNumber());//SimpleFieldAssign//sourceId:1729497_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setSortCreateTime(queryEvaObjTargetCyclePlatformDetailComRespDto.getSortCreateTime());//SimpleFieldAssign//sourceId:1729492_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setBatchCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getBatchCode());//SimpleFieldAssign//sourceId:1729498_1_66853
    }
if(queryEvaObjTargetCyclePlatformDetailComRespDto_4!=null){
      implementInitializeTargetContMidCycleComReqDto_1.setCycleId(queryEvaObjTargetCyclePlatformDetailComRespDto_4.getCycleId());//SimpleFieldAssign//sourceId:1729478_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setCycleStandardName(queryEvaObjTargetCyclePlatformDetailComRespDto_4.getCycleStandardName());//SimpleFieldAssign//sourceId:1729479_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setCycleStartTime(queryEvaObjTargetCyclePlatformDetailComRespDto_4.getCycleStartTime());//SimpleFieldAssign//sourceId:1729480_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setCycleEndTime(queryEvaObjTargetCyclePlatformDetailComRespDto_4.getCycleEndTime());//SimpleFieldAssign//sourceId:1729481_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setCycleTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto_4.getCycleTypeCode());//SimpleFieldAssign//sourceId:1729482_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setCycleTypeInstanceCode(queryEvaObjTargetCyclePlatformDetailComRespDto_4.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:1729483_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setCycleNumberShortName(queryEvaObjTargetCyclePlatformDetailComRespDto_4.getCycleNumberShortName());//SimpleFieldAssign//sourceId:1729484_1_66853
implementInitializeTargetContMidCycleComReqDto_1.setOrderNumber(queryEvaObjTargetCyclePlatformDetailComRespDto_4.getOrderNumber());//SimpleFieldAssign//sourceId:1729493_1_66853
    }
if(reqDto!=null){
      implementInitializeTargetContMidCycleComReqDto_1.setTargetContentNumber(reqDto.getTargetContentNumber());//SimpleFieldAssign//sourceId:1801521_1_66853
    }

    /*D3初始化目标内容中期(公共)[9390]   */
    Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getEvaObjTargetCycleCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-被评对象目标周期标识不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getCyclelAlias(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-目标周期简称不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getEvaObjEntityId(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getEvaObjTableTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-被评对象内容表类型编码不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getEvaObjTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getTreeTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-树类型编码不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getTargetCycleContentId(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getTargetCycleContentTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getCycleId(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-周期ID不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getCycleStandardName(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-周期名称不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getCycleStartTime(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-目标计划开始时间不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getCycleEndTime(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-目标计划结束时间不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getCycleTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-周期类型标识不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getOrderNumber(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-周期排序不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getBizSceneCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余业务场景标识配置项不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getEvaluationSubjectTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余评价主题类型配置项不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getEvaluationTemplateTypeCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余评价模板类型配置项不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getPlanningType(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余规划类型不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getTargetId(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余目标ID不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getEvaluationSubjectId(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-冗余评价主题ID不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getRelativeOrderNumber(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-相对上级排序不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getSortCreateTime(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-评价模板创建时间排序不能为空",false);
Assert.isNull(implementInitializeTargetContMidCycleComReqDto_1.getBatchCode(),"D3执行更新目标周期同体情况(公共)-D3初始化目标内容中期(公共)-批次标识不能为空",false);
      implementInitializeTargetContMidCycleComRespDto_1 = implementInitializeTargetContMidCycleCom(implementInitializeTargetContMidCycleComReqDto_1)/*vcase invoke 同服务,同domain*/;
      
      
      
           }
    }
      }
if((reqDto!= null&&  reqDto.getEvaObjTargetCycleList() !=null && reqDto.getEvaObjTargetCycleList().size()==1)){
        //if(D3执行更新目标周期同体情况(公共).被评对象目标周期列表数据集条数 等于 1)  66902
      
boolean bOOLEAN_4 ;
    OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle_4=new OmsEvaluationObjectTargetCycle();
  omsEvaluationObjectTargetCycle_4.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1729328_1_66903
omsEvaluationObjectTargetCycle_4.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1729329_1_66903
if(reqDto!=null){
      omsEvaluationObjectTargetCycle_4.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1729030_1_66903
    }
if(receptionServiceRes!=null){
      omsEvaluationObjectTargetCycle_4.setIsSubCycle(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1729031_1_66903
    }
  
    /*3-3-09回写当前目标周期子或中[2317]   */
    Assert.isNull(omsEvaluationObjectTargetCycle_4.getEvaObjTargetCycleId(),"D3执行更新目标周期同体情况(公共)-3-3-09回写当前目标周期子或中-被评对象目标周期ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle_4.getOperationInductionId(),"D3执行更新目标周期同体情况(公共)-3-3-09回写当前目标周期子或中-操作人就职记录ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle_4.getOperateTime(),"D3执行更新目标周期同体情况(公共)-3-3-09回写当前目标周期子或中-操作时间不能为空",false);
      bOOLEAN_4 = mOmsEvaluationObjectTargetCycleService.updateEvaObjTargetCycle(omsEvaluationObjectTargetCycle_4)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
if((preparationTargetContCycleConfParameterComRespDto!= null&&  preparationTargetContCycleConfParameterComRespDto.getCycleMode() !=null && preparationTargetContCycleConfParameterComRespDto.getCycleMode().equals("FATHER_SON_CYCLE"))) {
        //if(D2准备入参：1 目标内容工作周期初始化配置参数(公共).周期模式 等于 父子周期)  69325

ImplementAmendTargetContCycleModelComRespDto implementAmendTargetContCycleModelComRespDto = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto !=null){
          ImplementAmendTargetContCycleModelComReqDto implementAmendTargetContCycleModelComReqDto=new ImplementAmendTargetContCycleModelComReqDto();
  implementAmendTargetContCycleModelComReqDto.setPeriodicModeTypeCode("SINGLE_CYCLE");//sourceId:1729825_1_69326
if(queryEvaObjTargetCyclePlatformDetailComRespDto!=null){
      implementAmendTargetContCycleModelComReqDto.setTargetCycleContentId(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1729826_1_69326
implementAmendTargetContCycleModelComReqDto.setTargetCycleContentTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1729827_1_69326
    }
  
    /*D3修正目标内容为单周期模式(公共)[9381]   */
    Assert.isNull(implementAmendTargetContCycleModelComReqDto.getPeriodicModeTypeCode(),"D3执行更新目标周期同体情况(公共)-D3修正目标内容为单周期模式(公共)-周期模式类型编码不能为空",false);
Assert.isNull(implementAmendTargetContCycleModelComReqDto.getTargetCycleContentId(),"D3执行更新目标周期同体情况(公共)-D3修正目标内容为单周期模式(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementAmendTargetContCycleModelComReqDto.getTargetCycleContentTypeCode(),"D3执行更新目标周期同体情况(公共)-D3修正目标内容为单周期模式(公共)-关联目标内容类型编码不能为空",false);
      implementAmendTargetContCycleModelComRespDto = indexSystemService.implementAmendTargetContCycleModelCom(implementAmendTargetContCycleModelComReqDto)/*vcase invoke isSameApp*/;
      
      
      
           }
ImplementAmendTargetContOpenCustomExecuteCycleComRespDto implementAmendTargetContOpenCustomExecuteCycleComRespDto_4 = null;
    if(queryEvaObjTargetCyclePlatformDetailComRespDto !=null){
          ImplementAmendTargetContOpenCustomExecuteCycleComReqDto implementAmendTargetContOpenCustomExecuteCycleComReqDto_4=new ImplementAmendTargetContOpenCustomExecuteCycleComReqDto();
  implementAmendTargetContOpenCustomExecuteCycleComReqDto_4.setIsOpenCustomExecuteCycle("TRUE");//sourceId:1729821_1_69327
if(queryEvaObjTargetCyclePlatformDetailComRespDto!=null){
      implementAmendTargetContOpenCustomExecuteCycleComReqDto_4.setTargetCycleContentId(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1729822_1_69327
implementAmendTargetContOpenCustomExecuteCycleComReqDto_4.setTargetCycleContentTypeCode(queryEvaObjTargetCyclePlatformDetailComRespDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1729823_1_69327
    }
if(reqDto!=null){
      implementAmendTargetContOpenCustomExecuteCycleComReqDto_4.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1729824_1_69327
    }
  
    /*D3回写当前目标内容开启自定义执行周期(公共)[9378]   */
    Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_4.getIsOpenCustomExecuteCycle(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-是否开启自定义执行周期不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_4.getTargetCycleContentId(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-关联目标内容ID不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_4.getTargetCycleContentTypeCode(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(implementAmendTargetContOpenCustomExecuteCycleComReqDto_4.getEvaluationTemplateId(),"D3执行更新目标周期同体情况(公共)-D3回写当前目标内容开启自定义执行周期(公共)-冗余评价模板ID不能为空",false);
      implementAmendTargetContOpenCustomExecuteCycleComRespDto_4 = indexSystemService.implementAmendTargetContOpenCustomExecuteCycleCom(implementAmendTargetContOpenCustomExecuteCycleComReqDto_4)/*vcase invoke isSameApp*/;
      
      
      
           }
           }
    }
ImplementUpdateTargetCycleHomomorphicComRespDto retData = new ImplementUpdateTargetCycleHomomorphicComRespDto();
  
  

  
  
return retData;
  }
/**
   * D3初始化目标内容中期(公共)[9390]
   * gen by moon at 5/16/2024, 8:17:43 PM
   */
  @Trace(operationName = "D3初始化目标内容中期(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementInitializeTargetContMidCycleComRespDto implementInitializeTargetContMidCycleCom(ImplementInitializeTargetContMidCycleComReqDto reqDto){
    
      
      String string_1 =null;
//virtualUsage D3查当前目标内容中期详请（用于判断是否已存在）  66849
      ObtainEvaObjTargetCycleComRespDto obtainEvaObjTargetCycleComRespDto = null;
    ObtainEvaObjTargetCycleComReqDto obtainEvaObjTargetCycleComReqDto=new ObtainEvaObjTargetCycleComReqDto();
  obtainEvaObjTargetCycleComReqDto.setIsArchive("FALSE");//sourceId:1729347_1_66849
if(reqDto!=null){
      obtainEvaObjTargetCycleComReqDto.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1732389_1_66849
obtainEvaObjTargetCycleComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1729334_1_66849
obtainEvaObjTargetCycleComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1729336_1_66849
obtainEvaObjTargetCycleComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1729337_1_66849
obtainEvaObjTargetCycleComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1729345_1_66849
    }
  
    /*D3查当前目标内容中期详请（用于判断是否已存在）[9380]   */
    Assert.isNull(obtainEvaObjTargetCycleComReqDto.getEvaObjEntityId(),"D3初始化目标内容中期(公共)-D3查当前目标内容中期详请（用于判断是否已存在）-被评对象内容表主键ID不能为空",false);
Assert.isNull(obtainEvaObjTargetCycleComReqDto.getEvaObjTypeCode(),"D3初始化目标内容中期(公共)-D3查当前目标内容中期详请（用于判断是否已存在）-被评对象类型编码不能为空",false);
Assert.isNull(obtainEvaObjTargetCycleComReqDto.getTargetCycleContentId(),"D3初始化目标内容中期(公共)-D3查当前目标内容中期详请（用于判断是否已存在）-关联目标内容ID不能为空",false);
Assert.isNull(obtainEvaObjTargetCycleComReqDto.getCycleId(),"D3初始化目标内容中期(公共)-D3查当前目标内容中期详请（用于判断是否已存在）-周期ID不能为空",false);
Assert.isNull(obtainEvaObjTargetCycleComReqDto.getEvaluationTemplateId(),"D3初始化目标内容中期(公共)-D3查当前目标内容中期详请（用于判断是否已存在）-冗余评价模板ID不能为空",false);
Assert.isNull(obtainEvaObjTargetCycleComReqDto.getIsArchive(),"D3初始化目标内容中期(公共)-D3查当前目标内容中期详请（用于判断是否已存在）-是否存档不能为空",false);
      obtainEvaObjTargetCycleComRespDto = targetCycleService.obtainEvaObjTargetCycleCom(obtainEvaObjTargetCycleComReqDto)/*vcase invoke isSameApp*/;
      
      
      
if((obtainEvaObjTargetCycleComRespDto!= null&& obtainEvaObjTargetCycleComRespDto.getEvaObjTargetCycleId() == null )) {
        //if(D3查当前目标内容中期详请（用于判断是否已存在）.被评对象目标周期ID 值等于空 )  66850
        
String string = null;
    OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle=new OmsEvaluationObjectTargetCycle();
omsEvaluationObjectTargetCycle.setIsParentCycle("FALSE");//sourceId:1729387_1_66851
omsEvaluationObjectTargetCycle.setIsSubCycle("FALSE");//sourceId:1729388_1_66851
omsEvaluationObjectTargetCycle.setIsMetaphase("TRUE");//sourceId:1729389_1_66851
omsEvaluationObjectTargetCycle.setIsTarget("FALSE");//sourceId:1729403_1_66851
omsEvaluationObjectTargetCycle.setHaveProcessCycle("FALSE");//sourceId:1739249_1_66851
omsEvaluationObjectTargetCycle.setTaskStatus("NOT_AT_THE");//sourceId:1729394_1_66851
if(reqDto!=null){
      omsEvaluationObjectTargetCycle.setEvaObjTargetCycleCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1729379_1_66851
omsEvaluationObjectTargetCycle.setParentEvaObjTargetCycleId(reqDto.getParentEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1729380_1_66851
omsEvaluationObjectTargetCycle.setTargetCycleName(reqDto.getCyclelAlias());//SimpleFieldAssign//sourceId:1729416_1_66851
omsEvaluationObjectTargetCycle.setCyclelAlias(reqDto.getCyclelAlias());//SimpleFieldAssign//sourceId:1729417_1_66851
omsEvaluationObjectTargetCycle.setEvaluationObjectId(reqDto.getEvaluationObjectId());//SimpleFieldAssign//sourceId:1729402_1_66851
omsEvaluationObjectTargetCycle.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1729382_1_66851
omsEvaluationObjectTargetCycle.setEvaObjTableTypeCode(reqDto.getEvaObjTableTypeCode());//SimpleFieldAssign//sourceId:1729383_1_66851
omsEvaluationObjectTargetCycle.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1729384_1_66851
omsEvaluationObjectTargetCycle.setTreeTypeCode(reqDto.getTreeTypeCode());//SimpleFieldAssign//sourceId:1729381_1_66851
omsEvaluationObjectTargetCycle.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1729385_1_66851
omsEvaluationObjectTargetCycle.setTargetCycleContentTypeCode(reqDto.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1729386_1_66851
omsEvaluationObjectTargetCycle.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1729390_1_66851
omsEvaluationObjectTargetCycle.setCycleStandardName(reqDto.getCycleStandardName());//SimpleFieldAssign//sourceId:1729418_1_66851
omsEvaluationObjectTargetCycle.setCycleStartTime(reqDto.getCycleStartTime());//SimpleFieldAssign//sourceId:1729411_1_66851
omsEvaluationObjectTargetCycle.setCycleEndTime(reqDto.getCycleEndTime());//SimpleFieldAssign//sourceId:1729412_1_66851
omsEvaluationObjectTargetCycle.setCycleTypeCode(reqDto.getCycleTypeCode());//SimpleFieldAssign//sourceId:1729391_1_66851
omsEvaluationObjectTargetCycle.setCycleTypeInstanceCode(reqDto.getCycleTypeInstanceCode());//SimpleFieldAssign//sourceId:1729404_1_66851
omsEvaluationObjectTargetCycle.setCycleNumberShortName(reqDto.getCycleNumberShortName());//SimpleFieldAssign//sourceId:1729419_1_66851
omsEvaluationObjectTargetCycle.setOrderNumber(reqDto.getOrderNumber());//SimpleFieldAssign//sourceId:1729393_1_66851
omsEvaluationObjectTargetCycle.setIndicatorKind(reqDto.getIndicatorKind());//SimpleFieldAssign//sourceId:1729422_1_66851
omsEvaluationObjectTargetCycle.setIsCustomObjective(reqDto.getIsCustomObjective());//SimpleFieldAssign//sourceId:1729423_1_66851
omsEvaluationObjectTargetCycle.setBizSceneCode(reqDto.getBizSceneCode());//SimpleFieldAssign//sourceId:1729395_1_66851
omsEvaluationObjectTargetCycle.setEvaluationSubjectTypeCode(reqDto.getEvaluationSubjectTypeCode());//SimpleFieldAssign//sourceId:1729396_1_66851
omsEvaluationObjectTargetCycle.setEvaluationTemplateTypeCode(reqDto.getEvaluationTemplateTypeCode());//SimpleFieldAssign//sourceId:1729397_1_66851
omsEvaluationObjectTargetCycle.setPlanningType(reqDto.getPlanningType());//SimpleFieldAssign//sourceId:1729398_1_66851
omsEvaluationObjectTargetCycle.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:1729413_1_66851
omsEvaluationObjectTargetCycle.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1729399_1_66851
omsEvaluationObjectTargetCycle.setEvaluationSubjectId(reqDto.getEvaluationSubjectId());//SimpleFieldAssign//sourceId:1729414_1_66851
omsEvaluationObjectTargetCycle.setTargetContentNumber(reqDto.getTargetContentNumber());//SimpleFieldAssign//sourceId:1801519_1_66851
omsEvaluationObjectTargetCycle.setRelativeOrderNumber(reqDto.getRelativeOrderNumber());//SimpleFieldAssign//sourceId:1729421_1_66851
omsEvaluationObjectTargetCycle.setDutyBodyOrderNum(reqDto.getDutyBodyOrderNum());//SimpleFieldAssign//sourceId:1729426_1_66851
omsEvaluationObjectTargetCycle.setPersonalOrderNumber(reqDto.getPersonalOrderNumber());//SimpleFieldAssign//sourceId:1729427_1_66851
omsEvaluationObjectTargetCycle.setWeightOrderNumber(reqDto.getWeightOrderNumber());//SimpleFieldAssign//sourceId:1729428_1_66851
omsEvaluationObjectTargetCycle.setSortCreateTime(reqDto.getSortCreateTime());//SimpleFieldAssign//sourceId:1729392_1_66851
omsEvaluationObjectTargetCycle.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:1729400_1_66851
omsEvaluationObjectTargetCycle.setCreateBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:1729430_1_66851
    }
  
    /*3-3-09新增被评对象目标周期[2314]   */
    Assert.isNull(omsEvaluationObjectTargetCycle.getEvaObjTargetCycleCode(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-被评对象目标周期标识不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getTargetCycleName(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-目标周期名称不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCyclelAlias(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-目标周期简称不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaObjEntityId(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-被评对象内容表主键ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaObjTableTypeCode(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-被评对象内容表类型编码不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaObjTypeCode(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-被评对象类型编码不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getTreeTypeCode(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-树类型编码不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getTargetCycleContentId(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-关联目标内容ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getTargetCycleContentTypeCode(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-关联目标内容类型编码不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleId(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-周期ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleStandardName(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-周期名称不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleStartTime(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-目标计划开始时间不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleEndTime(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-目标计划结束时间不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCycleTypeCode(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-周期类型标识不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getOrderNumber(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-周期排序不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getIsParentCycle(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-是否父周期不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getIsSubCycle(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-是否子周期不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getIsMetaphase(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-是否中期不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getIsTarget(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-是否目标不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getHaveProcessCycle(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-是否有过程周期不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getTaskStatus(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-目标周期进展状态不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getBizSceneCode(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-冗余业务场景标识配置项不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaluationSubjectTypeCode(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-冗余评价主题类型配置项不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaluationTemplateTypeCode(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-冗余评价模板类型配置项不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getPlanningType(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-冗余规划类型不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getTargetId(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-冗余目标ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaluationTemplateId(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-冗余评价模板ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getEvaluationSubjectId(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-冗余评价主题ID不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getRelativeOrderNumber(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-相对上级排序不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getSortCreateTime(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-评价模板创建时间排序不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getBatchCode(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-批次标识不能为空",false);
Assert.isNull(omsEvaluationObjectTargetCycle.getCreateBatchCode(),"D3初始化目标内容中期(公共)-3-3-09新增被评对象目标周期-创建于批次标识不能为空",false);
      string = mOmsEvaluationObjectTargetCycleService.addEvaObjTargetCycle(omsEvaluationObjectTargetCycle)/*vcase invoke 本地 method 方法调用;*/;
      
      
      string_1 = string;
      }
ImplementInitializeTargetContMidCycleComRespDto retData = new ImplementInitializeTargetContMidCycleComRespDto();
  if(string_1!=null){
      retData.setEvaObjTargetCycleId(string_1);//SimpleFieldAssign//sourceId:1729465_1
    }
  

  
  
return retData;
  }
/**
   * D3回写目标周期权重等信息(公共)[9394]
   * gen by moon at 4/16/2024, 10:40:45 PM
   */
  @Trace(operationName = "D3回写目标周期权重等信息(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public ImplementRewriteTargetCycleWeightEtcInfoComRespDto implementRewriteTargetCycleWeightEtcInfoCom(ImplementRewriteTargetCycleWeightEtcInfoComReqDto reqDto){
    
      
      //virtualUsage 3-3-09查当前目标内容目标周期列表  66892
      List<OmsEvaluationObjectTargetCycle> listOmsEvaluationObjectTargetCycle =new ArrayList<>();
    QueryEvaObjTargetCycleListReq queryEvaObjTargetCycleListReq=new QueryEvaObjTargetCycleListReq();
  queryEvaObjTargetCycleListReq.setIsArchive("FALSE");//sourceId:1731307_1_66892
if(reqDto!=null){
      queryEvaObjTargetCycleListReq.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1731350_1_66892
queryEvaObjTargetCycleListReq.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1731294_1_66892
queryEvaObjTargetCycleListReq.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1731306_1_66892
queryEvaObjTargetCycleListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1731301_1_66892
    }
  
    /*3-3-09查当前目标内容目标周期列表[2190]   */
    Assert.isNull(queryEvaObjTargetCycleListReq.getEvaObjEntityId(),"D3回写目标周期权重等信息(公共)-3-3-09查当前目标内容目标周期列表-被评对象内容表主键ID不能为空",false);
Assert.isNull(queryEvaObjTargetCycleListReq.getEvaObjTypeCode(),"D3回写目标周期权重等信息(公共)-3-3-09查当前目标内容目标周期列表-被评对象类型编码不能为空",false);
Assert.isNull(queryEvaObjTargetCycleListReq.getTargetCycleContentId(),"D3回写目标周期权重等信息(公共)-3-3-09查当前目标内容目标周期列表-关联目标内容ID不能为空",false);
Assert.isNull(queryEvaObjTargetCycleListReq.getEvaluationTemplateId(),"D3回写目标周期权重等信息(公共)-3-3-09查当前目标内容目标周期列表-冗余评价模板ID不能为空",false);
Assert.isNull(queryEvaObjTargetCycleListReq.getIsArchive(),"D3回写目标周期权重等信息(公共)-3-3-09查当前目标内容目标周期列表-是否存档不能为空",false);
      listOmsEvaluationObjectTargetCycle = mOmsEvaluationObjectTargetCycleService.queryEvaObjTargetCycleList(queryEvaObjTargetCycleListReq)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
//virtualUsage D3-新增被评对象目标周期权重(公共)  66894
      AddEvaObjTargetCycleWeightComRespDto addEvaObjTargetCycleWeightComRespDto = null;
    if(listOmsEvaluationObjectTargetCycle !=null&& !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)&& listOmsEvaluationObjectTargetCycle.size()>0 ){
          AddEvaObjTargetCycleWeightComReqDto addEvaObjTargetCycleWeightComReqDto=new AddEvaObjTargetCycleWeightComReqDto();
  if(listOmsEvaluationObjectTargetCycle!= null&& !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)&&  listOmsEvaluationObjectTargetCycle !=null&& !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)){
      addEvaObjTargetCycleWeightComReqDto.setEvaObjTargetCycleList(listOmsEvaluationObjectTargetCycle.stream().map(item -> BeanUtil.toBean(item, EvaObjTargetCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1731421_1_66894
    }
if(reqDto!=null){
      addEvaObjTargetCycleWeightComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1731419_1_66894
addEvaObjTargetCycleWeightComReqDto.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:1731420_1_66894
    }
  
    /*D3-新增被评对象目标周期权重(公共)[5412]   */
    Assert.isNull(addEvaObjTargetCycleWeightComReqDto.getEvaluationTemplateId(),"D3回写目标周期权重等信息(公共)-D3-新增被评对象目标周期权重(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(addEvaObjTargetCycleWeightComReqDto.getBatchCode(),"D3回写目标周期权重等信息(公共)-D3-新增被评对象目标周期权重(公共)-批次标识不能为空",false);
      addEvaObjTargetCycleWeightComRespDto = targetCycleService.addEvaObjTargetCycleWeightCom(addEvaObjTargetCycleWeightComReqDto)/*vcase invoke isSameApp*/;
      
      
      
           }
if((reqDto!= null&&  reqDto.getTargetCycleContentTypeCode() !=null && reqDto.getTargetCycleContentTypeCode().equals("OBJECTIVE")&&reqDto!= null&&  reqDto.getCalcBusinessScence() !=null && reqDto.getCalcBusinessScence().equals("EVA_OBJECT"))) {
        //if((D3回写目标周期权重等信息(公共).关联目标内容类型编码 等于 指标 and D3回写目标周期权重等信息(公共).计算业务场景 等于 评价对象))  66881
        
QueryTargetObjUseFirstDeptEtcDetailComRespDto queryTargetObjUseFirstDeptEtcDetailComRespDto = null;
    QueryTargetObjUseFirstDeptEtcDetailComReqDto queryTargetObjUseFirstDeptEtcDetailComReqDto=new QueryTargetObjUseFirstDeptEtcDetailComReqDto();
  if(reqDto!=null){
      queryTargetObjUseFirstDeptEtcDetailComReqDto.setObjectiveId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1731287_1_66882
queryTargetObjUseFirstDeptEtcDetailComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1731288_1_66882
    }
  
    /*D3-3查询指标是否一级部门等信息详情(公共)[4776]   */
    Assert.isNull(queryTargetObjUseFirstDeptEtcDetailComReqDto.getObjectiveId(),"D3回写目标周期权重等信息(公共)-D3-3查询指标是否一级部门等信息详情(公共)-指标ID不能为空",false);
Assert.isNull(queryTargetObjUseFirstDeptEtcDetailComReqDto.getEvaluationTemplateId(),"D3回写目标周期权重等信息(公共)-D3-3查询指标是否一级部门等信息详情(公共)-冗余评价模板ID不能为空",false);
      queryTargetObjUseFirstDeptEtcDetailComRespDto = indexSystemService.queryTargetObjUseFirstDeptEtcDetailCom(queryTargetObjUseFirstDeptEtcDetailComReqDto)/*vcase invoke isSameApp*/;
      
      
      
boolean bOOLEAN ;
    if(listOmsEvaluationObjectTargetCycle !=null&& !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)&& listOmsEvaluationObjectTargetCycle.size()>0 &&queryTargetObjUseFirstDeptEtcDetailComRespDto !=null){
          List<OmsEvaluationObjectTargetCycle> listOmsEvaluationObjectTargetCycle_2=new ArrayList<>();
  if(listOmsEvaluationObjectTargetCycle!= null&& !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)&&  listOmsEvaluationObjectTargetCycle !=null&& !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)){
      QueryTargetObjUseFirstDeptEtcDetailComRespDto finalQueryTargetObjUseFirstDeptEtcDetailComRespDto = queryTargetObjUseFirstDeptEtcDetailComRespDto;
      listOmsEvaluationObjectTargetCycle_2 = //objList-to-objLists
        listOmsEvaluationObjectTargetCycle.stream().map(item -> {
      OmsEvaluationObjectTargetCycle elm = new OmsEvaluationObjectTargetCycle();
      elm.setEvaObjTargetCycleId(item.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:346847_2_66885
elm.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:346850_2_66885
elm.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:346851_2_66885
if(finalQueryTargetObjUseFirstDeptEtcDetailComRespDto !=null){
      elm.setIsUseFirstDept(finalQueryTargetObjUseFirstDeptEtcDetailComRespDto.getIsUseFirstDept());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:346848_2_66885
elm.setCorrelationLastTargetCatId(finalQueryTargetObjUseFirstDeptEtcDetailComRespDto.getCorrelationLastTargetCatId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:346849_2_66885
    }
        return elm;
      }).collect(Collectors.toList());//objList-to-objLists//sourceId:1731352_1_66885
    }
  
    /*3-3-09-01批量回写指标目标周期是否用于一级部门及末级目标分类ID[2664]   */
    
      bOOLEAN = mOmsEvaluationObjectTargetCycleService.batchUpdateEvaObjTargetCycle(listOmsEvaluationObjectTargetCycle_2)/*vcase invoke 本地 method 方法调用;*/;
      
      
      
           }
BatchAddEvaObjTargetCycleTargetComRespDto batchAddEvaObjTargetCycleTargetComRespDto = null;
    if(listOmsEvaluationObjectTargetCycle !=null&& !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)&& listOmsEvaluationObjectTargetCycle.size()>0 ){
          BatchAddEvaObjTargetCycleTargetComReqDto batchAddEvaObjTargetCycleTargetComReqDto=new BatchAddEvaObjTargetCycleTargetComReqDto();
  if(listOmsEvaluationObjectTargetCycle!= null&& !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)&&  listOmsEvaluationObjectTargetCycle !=null&& !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)){
      batchAddEvaObjTargetCycleTargetComReqDto.setEvaObjTargetCycleList(listOmsEvaluationObjectTargetCycle.stream().map(item->item.getEvaObjTargetCycleId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1731327_1_66886
    }
if(reqDto!=null){
      batchAddEvaObjTargetCycleTargetComReqDto.setObjectiveId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1731330_1_66886
batchAddEvaObjTargetCycleTargetComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1731328_1_66886
    }
  
    /*D3-3批量增被评对象目标周期目标(公共)[4729]   */
    Assert.isNull(batchAddEvaObjTargetCycleTargetComReqDto.getObjectiveId(),"D3回写目标周期权重等信息(公共)-D3-3批量增被评对象目标周期目标(公共)-指标ID不能为空",false);
Assert.isNull(batchAddEvaObjTargetCycleTargetComReqDto.getEvaluationTemplateId(),"D3回写目标周期权重等信息(公共)-D3-3批量增被评对象目标周期目标(公共)-冗余评价模板ID不能为空",false);
      batchAddEvaObjTargetCycleTargetComRespDto = targetCycleService.batchAddEvaObjTargetCycleTargetCom(batchAddEvaObjTargetCycleTargetComReqDto)/*vcase invoke isSameApp*/;
      
      
      
           }
      }
else if((reqDto!= null&&  reqDto.getTargetCycleContentTypeCode() !=null && reqDto.getTargetCycleContentTypeCode().equals("OBJECTIVE")&&reqDto!= null&&  reqDto.getCalcBusinessScence() !=null && reqDto.getCalcBusinessScence().equals("OKR_SUBJECT_PERSONAL"))){
       //elseif((D3回写目标周期权重等信息(公共).关联目标内容类型编码 等于 指标 and D3回写目标周期权重等信息(公共).计算业务场景 等于 OKR责任主体个人))  66945

ImplementInitializeTargetCycleOsetComRespDto implementInitializeTargetCycleOsetComRespDto = null;
    ImplementInitializeTargetCycleOsetComReqDto implementInitializeTargetCycleOsetComReqDto=new ImplementInitializeTargetCycleOsetComReqDto();
  if(reqDto!=null){
      implementInitializeTargetCycleOsetComReqDto.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1738167_1_67127
implementInitializeTargetCycleOsetComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1738168_1_67127
implementInitializeTargetCycleOsetComReqDto.setObjectiveId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1738163_1_67127
implementInitializeTargetCycleOsetComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1738164_1_67127
implementInitializeTargetCycleOsetComReqDto.setCalcBusinessScence(reqDto.getCalcBusinessScence());//SimpleFieldAssign//sourceId:1738165_1_67127
implementInitializeTargetCycleOsetComReqDto.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:1738166_1_67127
    }

    /*D3初始化目标周期目标设置(公共)[9410]   */
    Assert.isNull(implementInitializeTargetCycleOsetComReqDto.getEvaObjEntityId(),"D3回写目标周期权重等信息(公共)-D3初始化目标周期目标设置(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(implementInitializeTargetCycleOsetComReqDto.getEvaObjTypeCode(),"D3回写目标周期权重等信息(公共)-D3初始化目标周期目标设置(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementInitializeTargetCycleOsetComReqDto.getObjectiveId(),"D3回写目标周期权重等信息(公共)-D3初始化目标周期目标设置(公共)-指标ID不能为空",false);
Assert.isNull(implementInitializeTargetCycleOsetComReqDto.getEvaluationTemplateId(),"D3回写目标周期权重等信息(公共)-D3初始化目标周期目标设置(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementInitializeTargetCycleOsetComReqDto.getCalcBusinessScence(),"D3回写目标周期权重等信息(公共)-D3初始化目标周期目标设置(公共)-计算业务场景不能为空",false);
Assert.isNull(implementInitializeTargetCycleOsetComReqDto.getBatchCode(),"D3回写目标周期权重等信息(公共)-D3初始化目标周期目标设置(公共)-批次标识不能为空",false);
      implementInitializeTargetCycleOsetComRespDto = targetContComService.implementInitializeTargetCycleOsetCom(implementInitializeTargetCycleOsetComReqDto)/*vcase invoke isSameApp*/;



    }
else if((reqDto!= null&&  reqDto.getTargetCycleContentTypeCode() !=null && reqDto.getTargetCycleContentTypeCode().equals("OBJECTIVE")&&reqDto!= null&&  reqDto.getCalcBusinessScence() !=null && reqDto.getCalcBusinessScence().equals("OKR_SUBJECT_DEPT"))){
       //elseif((D3回写目标周期权重等信息(公共).关联目标内容类型编码 等于 指标 and D3回写目标周期权重等信息(公共).计算业务场景 等于 OKR责任主体部门))  67096

//processBranchName:正常结束 ,processBranchId:67097

    }
else if((reqDto!= null&&  reqDto.getTargetCycleContentTypeCode() !=null && reqDto.getTargetCycleContentTypeCode().equals("OBJECTIVE")&&reqDto!= null&&  reqDto.getCalcBusinessScence() !=null && reqDto.getCalcBusinessScence().equals("EVA_PORTRAIT"))){
       //elseif((D3回写目标周期权重等信息(公共).关联目标内容类型编码 等于 指标 and D3回写目标周期权重等信息(公共).计算业务场景 等于 评价画像))  67098

ImplementInitializeTargetCycleOsetComRespDto implementInitializeTargetCycleOsetComRespDto_1 = null;
    ImplementInitializeTargetCycleOsetComReqDto implementInitializeTargetCycleOsetComReqDto_1=new ImplementInitializeTargetCycleOsetComReqDto();
  if(reqDto!=null){
      implementInitializeTargetCycleOsetComReqDto_1.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1738167_1_67130
implementInitializeTargetCycleOsetComReqDto_1.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1738168_1_67130
implementInitializeTargetCycleOsetComReqDto_1.setObjectiveId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1738163_1_67130
implementInitializeTargetCycleOsetComReqDto_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1738164_1_67130
implementInitializeTargetCycleOsetComReqDto_1.setCalcBusinessScence(reqDto.getCalcBusinessScence());//SimpleFieldAssign//sourceId:1738165_1_67130
implementInitializeTargetCycleOsetComReqDto_1.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:1738166_1_67130
    }

    /*D3初始化目标周期目标设置(公共)[9410]   */
    Assert.isNull(implementInitializeTargetCycleOsetComReqDto_1.getEvaObjEntityId(),"D3回写目标周期权重等信息(公共)-D3初始化目标周期目标设置(公共)-被评对象内容表主键ID不能为空",false);
Assert.isNull(implementInitializeTargetCycleOsetComReqDto_1.getEvaObjTypeCode(),"D3回写目标周期权重等信息(公共)-D3初始化目标周期目标设置(公共)-被评对象类型编码不能为空",false);
Assert.isNull(implementInitializeTargetCycleOsetComReqDto_1.getObjectiveId(),"D3回写目标周期权重等信息(公共)-D3初始化目标周期目标设置(公共)-指标ID不能为空",false);
Assert.isNull(implementInitializeTargetCycleOsetComReqDto_1.getEvaluationTemplateId(),"D3回写目标周期权重等信息(公共)-D3初始化目标周期目标设置(公共)-冗余评价模板ID不能为空",false);
Assert.isNull(implementInitializeTargetCycleOsetComReqDto_1.getCalcBusinessScence(),"D3回写目标周期权重等信息(公共)-D3初始化目标周期目标设置(公共)-计算业务场景不能为空",false);
Assert.isNull(implementInitializeTargetCycleOsetComReqDto_1.getBatchCode(),"D3回写目标周期权重等信息(公共)-D3初始化目标周期目标设置(公共)-批次标识不能为空",false);
      implementInitializeTargetCycleOsetComRespDto_1 = targetContComService.implementInitializeTargetCycleOsetCom(implementInitializeTargetCycleOsetComReqDto_1)/*vcase invoke isSameApp*/;



      }
ImplementRewriteTargetCycleWeightEtcInfoComRespDto retData = new ImplementRewriteTargetCycleWeightEtcInfoComRespDto();
  
  

  
  
return retData;
  }
/**
   * D3循环更新单模版目标周期进展状态(公共)[10249]
   * gen by moon at 10/4/2024, 10:25:42 PM
   */
  @Trace(operationName = "D3循环更新单模版目标周期进展状态(公共)")
  @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Transactional(rollbackFor=Exception.class)
  @Override
  public LoopUpdateSingleEvaTempTargetCycleStatusComRespDto loopUpdateSingleEvaTempTargetCycleStatusCom(LoopUpdateSingleEvaTempTargetCycleStatusComReqDto reqDto){


      //virtualUsage 3-3-9查询进行中被评对象目标周期列表  73099
      List<OmsEvaluationObjectTargetCycle> listOmsEvaluationObjectTargetCycle =new ArrayList<>();
    QueryUnderWayEvaObjTargetCycleListReq queryUnderWayEvaObjTargetCycleListReq=new QueryUnderWayEvaObjTargetCycleListReq();
  queryUnderWayEvaObjTargetCycleListReq.setEvaObjTypeCode("EVA_OBJECT");//sourceId:2013673_1_73099
queryUnderWayEvaObjTargetCycleListReq.setIsArchive("FALSE");//sourceId:2013681_1_73099
if(reqDto!=null){
      queryUnderWayEvaObjTargetCycleListReq.setEvaObjEntityId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:2013671_1_73099
queryUnderWayEvaObjTargetCycleListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:2013679_1_73099
    }

    /*3-3-9查询进行中被评对象目标周期列表[4836]   */
    Assert.isNull(queryUnderWayEvaObjTargetCycleListReq.getEvaObjEntityId(),"D3循环更新单模版目标周期进展状态(公共)-3-3-9查询进行中被评对象目标周期列表-被评对象内容表主键ID不能为空",false);
Assert.isNull(queryUnderWayEvaObjTargetCycleListReq.getEvaObjTypeCode(),"D3循环更新单模版目标周期进展状态(公共)-3-3-9查询进行中被评对象目标周期列表-被评对象类型编码不能为空",false);
Assert.isNull(queryUnderWayEvaObjTargetCycleListReq.getEvaluationTemplateId(),"D3循环更新单模版目标周期进展状态(公共)-3-3-9查询进行中被评对象目标周期列表-冗余评价模板ID不能为空",false);
Assert.isNull(queryUnderWayEvaObjTargetCycleListReq.getIsArchive(),"D3循环更新单模版目标周期进展状态(公共)-3-3-9查询进行中被评对象目标周期列表-是否存档不能为空",false);
      listOmsEvaluationObjectTargetCycle = mOmsEvaluationObjectTargetCycleService.queryUnderWayEvaObjTargetCycleList(queryUnderWayEvaObjTargetCycleListReq)/*vcase invoke 本地 method 方法调用;*/;



if((listOmsEvaluationObjectTargetCycle!= null&&  listOmsEvaluationObjectTargetCycle !=null && listOmsEvaluationObjectTargetCycle.size()>0)) {
        //if(3-3-9查询进行中被评对象目标周期列表.进行中被评对象目标周期列表列表数据集条数 大于 0)  73100

//ModelCode: circulationCollections
        for (OmsEvaluationObjectTargetCycle circulationCollectionsRes: listOmsEvaluationObjectTargetCycle){

RefreshTaskStatusComRespDto refreshTaskStatusComRespDto = null;
    RefreshTaskStatusComReqDto refreshTaskStatusComReqDto=new RefreshTaskStatusComReqDto();
  if(circulationCollectionsRes!=null){
      refreshTaskStatusComReqDto.setTargetCycleContentTypeCode(circulationCollectionsRes.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:2012964_1_73102
refreshTaskStatusComReqDto.setTargetCycleContentId(circulationCollectionsRes.getTargetCycleContentId());//SimpleFieldAssign//sourceId:2012967_1_73102
refreshTaskStatusComReqDto.setTargetId(circulationCollectionsRes.getTargetId());//SimpleFieldAssign//sourceId:2012966_1_73102
refreshTaskStatusComReqDto.setEvaluationTemplateId(circulationCollectionsRes.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:2012965_1_73102
    }

    /*D3-3更新目标周期进展状态(公共)[4835]   */
    Assert.isNull(refreshTaskStatusComReqDto.getTargetCycleContentTypeCode(),"D3循环更新单模版目标周期进展状态(公共)-D3-3更新目标周期进展状态(公共)-关联目标内容类型编码不能为空",false);
Assert.isNull(refreshTaskStatusComReqDto.getTargetCycleContentId(),"D3循环更新单模版目标周期进展状态(公共)-D3-3更新目标周期进展状态(公共)-关联目标内容ID不能为空",false);
Assert.isNull(refreshTaskStatusComReqDto.getTargetId(),"D3循环更新单模版目标周期进展状态(公共)-D3-3更新目标周期进展状态(公共)-目标ID不能为空",false);
Assert.isNull(refreshTaskStatusComReqDto.getEvaluationTemplateId(),"D3循环更新单模版目标周期进展状态(公共)-D3-3更新目标周期进展状态(公共)-冗余评价模板ID不能为空",false);
      refreshTaskStatusComRespDto = targetCycleService.refreshTaskStatusCom(refreshTaskStatusComReqDto)/*vcase invoke isSameApp*/;



//ModelCode: circulationEnd
        }

      }
LoopUpdateSingleEvaTempTargetCycleStatusComRespDto retData = new LoopUpdateSingleEvaTempTargetCycleStatusComRespDto();





return retData;
  }
  //
}
